Update Trigger
PUT {{baseUrl}}/api/v2/triggers/:trigger_id
Allowed For
- Agents
Note
Updating a condition or action updates both the conditions and actions arrays, clearing all existing values of both arrays. Include all your conditions and actions when updating any condition or action.
Request Body
{"trigger"=>{"conditions"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "actions"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "title"=>"<string>", "active"=>"<boolean>", "category_id"=>"<string>", "description"=>"<string>", "position"=>"<integer>", "raw_title"=>"<string>", "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
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"}}