Skip to content
gist.link ↗

moveDeal

Mutation CRM API — POST https://crm.api.gist.link/graphql

Move to a stage; status and closedAt derive from the stage’s isWon/isLost.

crm:mutation:moveDeal

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

type Mutation {
moveDeal(uuid: ID!, stageUuid: ID!): Deal!
}
Argument Type Required Description
uuid ID! Yes —
stageUuid ID! Yes —

Deal! — see the CRM types reference.

Terminal window
curl https://crm.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation MoveDeal($uuid: ID!, $stageUuid: ID!) { moveDeal(uuid: $uuid, stageUuid: $stageUuid) { uuid title currency status } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"stageUuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON