Skip to content

SmsDeleteTrigger

DELETE sms/trigger

Deletes a trigger. Its templates are left in place — they simply stop being fired automatically and can still be used by hand through SmsSendFromTemplate.

Access Control

Allowed role: admin, within the brand of the caller.

Request

DELETE request
DELETE https://{broker_domain}/sms/trigger?id=2
Authorization: <JWT_TOKEN>
{
  "command": "SmsDeleteTrigger",
  "extID": "1",
  "data": {
    "id": 2
  }
}
const res = await platform.SmsDeleteTrigger({
  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