Applies prompt policies to an instance.
Operation description
Before you begin: This operation applies only to mem0 applications created by calling CreateApplication with MemApplicationSpec specified. Create a mem0 application, call CreateApplicationPrompt to create prompts, and then call this operation to apply prompt policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ApplyApplicationPrompts |
update |
*Application
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. |
pa-************** |
| EnabledPromptIds |
array |
No |
The list of prompt IDs to enable. You must specify at least one non-empty list for EnabledPromptIds or DisabledPromptIds. Otherwise, the InvalidApplicationPromptId.Malformed error is returned. |
|
|
string |
No |
The prompt ID. |
papt-*********** |
|
| DisabledPromptIds |
array |
No |
The list of prompt IDs to disable. You must specify at least one non-empty list for EnabledPromptIds or DisabledPromptIds. Otherwise, the InvalidApplicationPromptId.Malformed error is returned. |
|
|
string |
No |
The prompt ID. |
papt-*********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| ApplicationId |
string |
The application ID. |
pa-************** |
Examples
Success response
JSON format
{
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"ApplicationId": "pa-**************"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidApplicationPromptId.Malformed | The specified parameter promptId is not valid. | Both EnabledPromptIds and DisabledPromptIds are empty arrays or neither is provided. |
| 403 | IncorrectDBInstanceEngine | Current DB Instance engine does not support this operation. | The database instance engine does not support this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.