Reorder Triggers

PUT {{baseUrl}}/api/v2/triggers/reorder

Alters the firing order of triggers in the account. See Reordering and sorting triggers in the Zendesk Help Center. The firing order is set in a trigger_ids array in the request body.

You must include every trigger id in your account to reorder the triggers. If not, the endpoint will return 404 Forbidden.

Reordering triggers via the API is not permitted if you have more than one trigger category. If there is more than one trigger category, the endpoint will return a LimitOneCategory error.

Allowed For

  • Agents

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"trigger":{"actions":[],"active":true,"category_id":"10026","conditions":{},"created_at":"2012-09-25T22:50:26Z","description":"Close and save a ticket","id":25,"position":8,"raw_title":"Close and Save","title":"Close and Save","updated_at":"2012-09-25T22:50:26Z","url":"http://{subdomain}.zendesk.com/api/v2/triggers/25.json"}}