Domains

Replace blocking DNS records

Delete the team's A, AAAA, CNAME and ALIAS records that block this domain's names in its Spacefast DNS zone. Then Spacefast DNS serves those names for the Space. The deleted records are not kept, and removing the domain later does not restore them. A name that an NS delegation blocks is never replaced. Pass names to replace some names only. The returned operation is the domain check that writes Spacefast's records. It is null when no name was blocked. Needs domains:dns.write on the zone's domain.

post/v1/spaces/{spaceId}/domains/{domainId}/dns/replace

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/spaces/{spaceId}/domains/{domainId}/dns/replace
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: domains:write)

Path parameters

spaceIdstring required
domainIdstring required

Request body

namesstring[]

Hostnames of this domain to replace. Omit it to replace every name that the team's A, AAAA, CNAME or ALIAS records block.

Response

Response for status 200

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

No recorded changes to this operation across all 1 revision of this API.