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:
| Name | Mandatory | Description |
|---|---|---|
| id | yes | The ID of the ticket trigger to update |
| position | no | The new position of the ticket trigger |
| active | no | The active status of the ticket trigger (true or false) |
| category_id | no | The 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
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"
}
]
}