Skip to content
gist.link ↗

savePipelineStages

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

Replace-all stage editor; stages keep identity via their uuid.

crm:mutation:savePipelineStages

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 {
savePipelineStages(pipelineUuid: ID!, stages: [StageInput!]!): Pipeline!
}
Argument Type Required Description
pipelineUuid ID! Yes —
stages [StageInput!]! Yes —

Pipeline! — 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 SavePipelineStages($pipelineUuid: ID!, $stages: [StageInput!]!) { savePipelineStages(pipelineUuid: $pipelineUuid, stages: $stages) { uuid name isDefault createdAt updatedAt } }",
"variables": {
"pipelineUuid": "01a01234-abcd-7000-9000-0123456789ab",
"stages": [
{
"name": "Example",
"probabilityBps": 10
}
]
}
}
JSON