Skip to content
gist.link ↗

applyMacro

Mutation Support API — POST https://support.api.gist.link/graphql

Run a macro’s actions against a ticket. ROLE_SUPPORT_AGENT/ROLE_ADMIN.

support:mutation:applyMacro

The calling IAM key must hold this permission (or a wildcard that covers it: support:mutation:* or support:*) and the access token must have been minted with audience=support. See Permissions.

type Mutation {
applyMacro(ticketId: Int!, macroId: Int!): Ticket!
}
Argument Type Required Description
ticketId Int! Yes —
macroId Int! Yes —

Ticket! — see the Support types reference.

Terminal window
curl https://support.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ApplyMacro($ticketId: Int!, $macroId: Int!) { applyMacro(ticketId: $ticketId, macroId: $macroId) { id subject status created_at updated_at } }",
"variables": {
"ticketId": 10,
"macroId": 10
}
}
JSON