Skip to content
gist.link ↗

connectProjectDomain

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

Attach a custom hostname to the project’s managed deployment: provisions the platform custom hostname (certificate) and pushes the CNAME through the domain’s DNS provider connected in settings. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:connectProjectDomain

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 {
connectProjectDomain(projectId: Int!, input: ConnectProjectDomainInput!): Project!
}
Argument Type Required Description
projectId Int! Yes —
input ConnectProjectDomainInput! Yes —

Project! — 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 ConnectProjectDomain($projectId: Int!, $input: ConnectProjectDomainInput!) { connectProjectDomain(projectId: $projectId, input: $input) { id uuid name created_at updated_at } }",
"variables": {
"projectId": 10,
"input": {
"domain_uuid": "example",
"hostname": "Example"
}
}
}
JSON