Update Many Macros

PUT {{baseUrl}}/api/v2/macros/update_many

Updates the provided macros with the specified changes.

Allowed For

  • Agents

Request Body

{"macros"=>[{"id"=>"<integer>", "active"=>"<boolean>", "position"=>"<integer>"}, {"id"=>"<integer>", "active"=>"<boolean>", "position"=>"<integer>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;count&quot;:2,&quot;macros&quot;:[{&quot;actions&quot;:[],&quot;active&quot;:true,&quot;description&quot;:&quot;Sets the ticket status to `solved`&quot;,&quot;id&quot;:25,&quot;position&quot;:42,&quot;restriction&quot;:{},&quot;title&quot;:&quot;Close and Save&quot;},{&quot;actions&quot;:[],&quot;active&quot;:false,&quot;description&quot;:&quot;Adds a `priority` tag to the ticket&quot;,&quot;id&quot;:26,&quot;restriction&quot;:{},&quot;title&quot;:&quot;Assign priority tag&quot;}],&quot;next_page&quot;:null,&quot;previous_page&quot;:null}