Skip to content
gist.link ↗

deployProject

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

Build and deploy the project to managed hosting (creates its managed Application on first use). ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:deployProject

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 {
deployProject(projectId: Int!): Deployment!
}
Argument Type Required Description
projectId 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 DeployProject($projectId: Int!) { deployProject(projectId: $projectId) { id uuid status created_at } }",
"variables": {
"projectId": 10
}
}
JSON