Skip to content
gist.link ↗

rollbackDeployment

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

Redeploy the previous succeeded provider ref for this application. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:rollbackDeployment

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 {
rollbackDeployment(applicationId: Int!): Deployment!
}
Argument Type Required Description
applicationId Int! Yes —

Deployment! — 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 RollbackDeployment($applicationId: Int!) { rollbackDeployment(applicationId: $applicationId) { id uuid status created_at } }",
"variables": {
"applicationId": 10
}
}
JSON