Skip to content
gist.link ↗

setTicketStatus

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

Change a ticket’s status. ROLE_SUPPORT_AGENT/ROLE_ADMIN.

support:mutation:setTicketStatus

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 {
setTicketStatus(id: Int!, status: String!): Ticket!
}
Argument Type Required Description
id Int! Yes —
status String! 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 SetTicketStatus($id: Int!, $status: String!) { setTicketStatus(id: $id, status: $status) { id subject status created_at updated_at } }",
"variables": {
"id": 10,
"status": "example"
}
}
JSON