Websites
Domains

Update domain DNS control

Changed on

Updates a bound domain's per-domain DNS control: whether the portal manages DNS hosting for this binding (dns_hosting_enabled) and/or whether it is the website's primary (apex) binding. Omitted fields are left unchanged.

patch/api/websites/{id}/domains/{domain_id}

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/websites/{id}/domains/{domain_id}
  • Auth: none declared

Path parameters

domain_idstring required

Domain ID

idstring required

Website ID

Request body

dns_hosting_enabledboolean
primaryboolean

Response

Domain updated

dns_hosting_enabledboolean required
domainstring required
gateway_hoststring
idinteger required
namespace'icann' | 'hns' required
owner_namestring
status'draft' | 'records_generated' | 'waiting_delegation' | 'active' | 'self_hosted' | 'error' | 'onchain_managed'
tlsa_rdatastring
zone_namestring

Changes