MailerDeleteTrigger¶
DELETE mailer/trigger
Deletes a trigger. Its templates are left in place — they simply stop being fired
automatically and can still be used by hand through MailerSendEmail
with templateId.
Access Control¶
Allowed role: admin, within the brand of the caller.
Request¶
DELETE request
DELETE https://{broker_domain}/mailer/trigger?id=2
Authorization: <JWT_TOKEN>
{
"command": "MailerDeleteTrigger",
"extID": "1",
"data": {
"id": 2
}
}
const res = await platform.MailerDeleteTrigger({
id: 2
});
Request Data¶
| Field | Type | Required | Description |
|---|---|---|---|
id |
int | Yes | Trigger id |
Response Data¶
{
"id": 2,
"deleted": true,
"message": "Trigger with ID 2 has been deleted"
}
Errors¶
| Code | Error | Description |
|---|---|---|
404 |
NOT_FOUND |
Trigger not found in the brand |