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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&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;}}