Update Macro

PUT {{baseUrl}}/api/v2/macros/:macro_id

Allowed For

  • Agents

Request Body

{"macro"=>{"title"=>"<string>", "actions"=>[{"field"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"field"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "active"=>"<boolean>", "description"=>"<string>", "restriction"=>{"id"=>"<integer>", "ids"=>["<integer>", "<integer>"], "type"=>"<string>"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;macro&quot;:{&quot;actions&quot;:[{&quot;field&quot;:&quot;status&quot;,&quot;value&quot;:&quot;solved&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;}}