Skip to content
gist.link ↗

pushProjectChanges

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

Commit the workspace and push to the linked repository. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:pushProjectChanges

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 {
pushProjectChanges(projectId: Int!, message: String!): GitActionResult!
}
Argument Type Required Description
projectId Int! Yes —
message String! Yes —

GitActionResult! — 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 PushProjectChanges($projectId: Int!, $message: String!) { pushProjectChanges(projectId: $projectId, message: $message) { message } }",
"variables": {
"projectId": 10,
"message": "example"
}
}
JSON