Create Batch Job for Trigger Categories
POST {{baseUrl}}/api/v2/trigger_categories/jobs
Creates a job that performs a batch operation for the given trigger categories.
Request Body
{"job"=>{"action"=>"<string>", "items"=>{"trigger_categories"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "triggers"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"results":{"trigger_categories":[{"created_at":"2020-07-18T01:24:53Z","id":"10001","name":"Notifications","position":0,"updated_at":"2020-07-20T01:30:07Z"},{"created_at":"2020-07-17T06:31:12Z","id":"10002","name":"Apply Tags","position":1,"updated_at":"2020-07-20T01:30:07Z"}],"triggers":[{"actions":[{}],"active":true,"conditions":{},"created_at":"2012-09-25T22:50:26Z","description":"Notify external target","id":10012,"position":1,"raw_title":"Notify target","title":"Notify Target","updated_at":"2020-07-20T01:30:07Z","url":"http://{subdomain}.zendesk.com/api/v2/triggers/10012.json"},{"actions":[{}],"active":false,"conditions":{},"created_at":"2012-09-25T22:50:26Z","description":"Close and save a ticket","id":10011,"position":10,"raw_title":"Close and Save","title":"Close and Save","updated_at":"2020-07-20T01:30:07Z","url":"http://{subdomain}.zendesk.com/api/v2/triggers/10011.json"}]},"status":"complete"}