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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"macro":{"actions":[{"field":"status","value":"solved"}],"active":true,"description":"Sets the ticket status to `solved`","id":25,"position":42,"restriction":{},"title":"Close and Save"}}