Skip to content
gist.link ↗

createGitConnection

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

Verify + encrypt a GitHub/GitLab access token as an org git connection. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:createGitConnection

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 {
createGitConnection(input: CreateGitConnectionInput!): GitConnection!
}
Argument Type Required Description
input CreateGitConnectionInput! Yes —

GitConnection! — 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 CreateGitConnection($input: CreateGitConnectionInput!) { createGitConnection(input: $input) { id uuid name created_at updated_at } }",
"variables": {
"input": {
"provider": "example",
"token": "example"
}
}
}
JSON