MngDeleteAIPromptTemplate¶
DELETE ai/prompt
Marks a template as deleted. A binding that referenced it keeps working but has
nothing to render, so its notifications fail with generation_failed until another
template is assigned — check bindings before
deleting.
Access Control¶
Allowed: admin. A shared template can be deleted by a super administrator only.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
id |
int | Template id |
Response Data¶
{ "id": 4, "deleted": true }
Errors¶
| Code | Error | Description |
|---|---|---|
403 |
AI_ACCESS_DENIED |
Not an administrator, or the template belongs to another brand |
404 |
AI_INVALID_DATA |
No such template in this scope |