Skip to content
gist.link ↗

cancelAgentSession

Mutation Deploy API — POST https://deploy.api.gist.link/graphql

Request cancellation of a running agent session (takes effect between loop iterations). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:cancelAgentSession

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

type Mutation {
cancelAgentSession(id: Int!): AgentSession!
}
Argument Type Required Description
id Int! Yes —

AgentSession! — see the Deploy types reference.

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