Triggers

Update Many Ticket Triggers

Updates the position or the active status of multiple ticket triggers. Any additional properties are ignored.

Allowed For

  • Agents

Request Parameters

The PUT request expects a triggers object that lists the ticket triggers to update.

Each ticket trigger may have the following properties:

NameMandatoryDescription
idyesThe ID of the ticket trigger to update
positionnoThe new position of the ticket trigger
activenoThe active status of the ticket trigger (true or false)
category_idnoThe ID of the new category the ticket trigger is to be moved to

Example Request

{
  "triggers": [
    {"id": 25, "position": 3},
    {"id": 23, "position": 5},
    {"id": 27, "position": 9},
    {"id": 22, "position": 7}
  ]
}
put/api/v2/triggers/update_many

Request body

Example request

{
  "triggers": [
    {
      "active": true,
      "category_id": "10026",
      "id": 25,
      "position": 8
    }
  ]
}

Response

Success response

countinteger
next_pagestring nullable
previous_pagestring nullable

Example response

{
  "triggers": [
    {
      "actions": [
        {}
      ],
      "active": true,
      "category_id": "10026",
      "conditions": {},
      "created_at": "2012-09-25T22:50:26Z",
      "default": false,
      "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"
    }
  ]
}

Changes