Show Macro Replica

GET {{baseUrl}}/api/v2/macros/new?macro_id=<integer>&ticket_id=<integer>

Returns an unpersisted macro representation derived from a ticket or macro.

The endpoint takes one of the following query parameters: macro_id or ticket_id. If you include both, macro_id is used.

Allowed For

  • Agents

Request Params

KeyDatatypeRequiredDescription
macro_idstring(Required) The ID of the macro to replicate
ticket_idstring(Required) The ID of the ticket from which to build a macro replica

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

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