Deletes an application prompt policy.
Operation description
Prerequisites: First, place an order on the buy page or call CreateApplication with MemApplicationSpec to create an application with mem0 capabilities enabled. Then, call CreateApplicationPrompt to create a prompt and obtain the PromptId. Finally, call this operation. If CreateApplication does not currently support the automated creation of this type of application, complete the prerequisite application on the buy page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DeleteApplicationPrompt |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. The ID must point to an application with mem0 capabilities enabled. You can determine this by checking whether the MemApplicationAttribute returned by DescribeApplicationAttribute is not empty. Applications such as polarclaw, supabase, and polarclawsaas that do not have mem0 enabled do not support prompt operations. |
pa-************** |
| PromptId |
string |
Yes |
The prompt ID. |
papt-f9lajgw765f4fnrzn1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF |
| PromptId |
string |
The prompt ID. |
papt-f9lajgw765f4fnrzn1 |
Examples
Success response
JSON format
{
"RequestId": "3E5CD764-FCCA-5C9C-838E-20E0DE84B2AF",
"PromptId": "papt-f9lajgw765f4fnrzn1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | UnsupportedApplicationType.Prompt | Application '{ApplicationId}' of type '{ApplicationType}' does not support prompt operations. Only mem0-enabled applications support prompt CRUD. Create a mem0-enabled application via CreateApplication with MemApplicationSpec first. | Explicitly inform the caller which type of application supports the prompt operation. {ApplicationId} {ApplicationType} |
| 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.