Skip to content
gist.link ↗

createConnection

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

Create + test + encrypt a provider connection. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:createConnection

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 {
createConnection(input: CreateConnectionInput!): ProviderConnection!
}
Argument Type Required Description
input CreateConnectionInput! Yes —

ProviderConnection! — 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 CreateConnection($input: CreateConnectionInput!) { createConnection(input: $input) { id uuid name status created_at updated_at } }",
"variables": {
"input": {
"provider_key": "example",
"name": "Example",
"credentials": {}
}
}
}
JSON