MngUpdateAIPromptTemplate¶
PUT ai/prompt
Updates a template. Only the fields present in the request change.
A template is read at the moment a notification is generated, so an edit affects the next event, not the ones already in the approval queue.
Access Control¶
Allowed: admin. A shared template can be edited by a super administrator only.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
id |
int | Template id |
name |
string | Optional, up to 128 characters |
type |
enum | Optional: notification, summary, classify, system |
content |
string | Optional, 1 to 20 000 characters |
language |
string | Optional |
enabled |
bool | Optional |
Response Data¶
The updated template.
Errors¶
| Code | Error | Description |
|---|---|---|
400 |
AI_INVALID_DATA |
The new name is taken, or type is unknown |
403 |
AI_ACCESS_DENIED |
Not an administrator, or the template belongs to another brand |
404 |
AI_INVALID_DATA |
No such template in this scope |