Skip to content
gist.link ↗

upsertDomainDnsRecords

Mutation Settings API — POST https://settings.api.gist.link/graphql

Upsert additional DNS records through the connected provider — the surface other suite services (e.g. deploy custom domains) integrate over. Records must target the domain or its subdomains. ROLE_ADMIN or ROLE_SERVICE.

settings:mutation:upsertDomainDnsRecords

The calling IAM key must hold this permission (or a wildcard that covers it: settings:mutation:* or settings:*) and the access token must have been minted with audience=settings. See Permissions.

type Mutation {
upsertDomainDnsRecords(uuid: String!, records: [DnsRecordInput!]!): Domain!
}
Argument Type Required Description
uuid String! Yes —
records [DnsRecordInput!]! Yes —

Domain! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpsertDomainDnsRecords($uuid: String!, $records: [DnsRecordInput!]!) { upsertDomainDnsRecords(uuid: $uuid, records: $records) { uuid status created_at updated_at } }",
"variables": {
"uuid": "example",
"records": [
{
"record_type": "example",
"name": "Example",
"value": "example"
}
]
}
}
JSON