Create Trigger
POST {{baseUrl}}/api/v2/triggers
Allowed For
- Agents
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: Created
{"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"}}