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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;results&quot;:{&quot;trigger_categories&quot;:[{&quot;created_at&quot;:&quot;2020-07-18T01:24:53Z&quot;,&quot;id&quot;:&quot;10001&quot;,&quot;name&quot;:&quot;Notifications&quot;,&quot;position&quot;:0,&quot;updated_at&quot;:&quot;2020-07-20T01:30:07Z&quot;},{&quot;created_at&quot;:&quot;2020-07-17T06:31:12Z&quot;,&quot;id&quot;:&quot;10002&quot;,&quot;name&quot;:&quot;Apply Tags&quot;,&quot;position&quot;:1,&quot;updated_at&quot;:&quot;2020-07-20T01:30:07Z&quot;}],&quot;triggers&quot;:[{&quot;actions&quot;:[{}],&quot;active&quot;:true,&quot;conditions&quot;:{},&quot;created_at&quot;:&quot;2012-09-25T22:50:26Z&quot;,&quot;description&quot;:&quot;Notify external target&quot;,&quot;id&quot;:10012,&quot;position&quot;:1,&quot;raw_title&quot;:&quot;Notify target&quot;,&quot;title&quot;:&quot;Notify Target&quot;,&quot;updated_at&quot;:&quot;2020-07-20T01:30:07Z&quot;,&quot;url&quot;:&quot;http://{subdomain}.zendesk.com/api/v2/triggers/10012.json&quot;},{&quot;actions&quot;:[{}],&quot;active&quot;:false,&quot;conditions&quot;:{},&quot;created_at&quot;:&quot;2012-09-25T22:50:26Z&quot;,&quot;description&quot;:&quot;Close and save a ticket&quot;,&quot;id&quot;:10011,&quot;position&quot;:10,&quot;raw_title&quot;:&quot;Close and Save&quot;,&quot;title&quot;:&quot;Close and Save&quot;,&quot;updated_at&quot;:&quot;2020-07-20T01:30:07Z&quot;,&quot;url&quot;:&quot;http://{subdomain}.zendesk.com/api/v2/triggers/10011.json&quot;}]},&quot;status&quot;:&quot;complete&quot;}