Skip to content
gist.link ↗

setAgentGroups

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

Assign a synced agent to support groups. The roster itself is auto-managed (mirrored from the auth user directory); groups are the only support-specific attribute an admin edits. ROLE_ADMIN.

support:mutation:setAgentGroups

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 {
setAgentGroups(agentId: Int!, groupIds: [Int!]!): Agent!
}
Argument Type Required Description
agentId Int! Yes —
groupIds [Int!]! Yes —

Agent! — 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 SetAgentGroups($agentId: Int!, $groupIds: [Int!]!) { setAgentGroups(agentId: $agentId, groupIds: $groupIds) { id name email created_at updated_at } }",
"variables": {
"agentId": 10,
"groupIds": [
10
]
}
}
JSON