Creates an application prompt policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateApplicationPrompt |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. You must specify an application with |
pa-************** |
| PromptName |
string |
Yes |
The prompt name. |
my_prompt |
| PromptType |
string |
Yes |
The prompt type. |
CONVERSATION_SUMMERY SEMANTIC_MEMORY MEMORY_ANSWER_PROMPT USER_MEMORY_EXTRACTION_PROMPT AGENT_MEMORY_EXTRACTION_PROMPT PROCEDURAL_MEMORY_SYSTEM_PROMPT RETRIEVE_NODES_PROMPT EXTRACT_RELATIONS_PROMPT UPDATE_GRAPH_PROMPT DELETE_RELATIONS_SYSTEM_PROMPT |
| PromptValue |
string |
Yes |
The prompt content. |
prompt content |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
6BD9CDE4-5E7B-4BF3-9BB8-83C73E****** |
| PromptId |
string |
The unique identifier of the prompt. |
papt-f9lajgw765f4fnrzn1 |
Examples
Success response
JSON format
{
"RequestId": "6BD9CDE4-5E7B-4BF3-9BB8-83C73E******",
"PromptId": "papt-f9lajgw765f4fnrzn1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | IncorrectDBInstanceEngine | application type is not supported | The ApplicationId references an application that is not of the mem0 type. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.