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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;trigger&quot;:{&quot;actions&quot;:[],&quot;active&quot;:true,&quot;category_id&quot;:&quot;10026&quot;,&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;:25,&quot;position&quot;:8,&quot;raw_title&quot;:&quot;Close and Save&quot;,&quot;title&quot;:&quot;Close and Save&quot;,&quot;updated_at&quot;:&quot;2012-09-25T22:50:26Z&quot;,&quot;url&quot;:&quot;http://{subdomain}.zendesk.com/api/v2/triggers/25.json&quot;}}