Update a domain
Change the site assignment (site_id, null detaches), point the hostname at one public published page (page: its slug, null detaches it), serve every published page by slug (pages: true, false stops it), toggle capabilities (email_sending on/off, email_receiving on), or turn auto-renewal on or off for a domain bought here (auto_renew: false lets it expire at expires_at; a change can take a minute to show on GET).
Authorizations
API key in the format: Bearer {api_token}
Path Parameters
The domain's ID.
Body
Slug of a public published page to serve at this hostname; null stops serving it. A gated page can't be served on a custom domain, and a hostname serves either a site or one page.
true makes this the account's pages domain (every published page at https:///, gated ones after the viewer signs in on it); false stops it.
Domains bought here only. true renews the registration (charged to the card on file) before expires_at; false lets it lapse then.
Response
Domain
pending_payment, registering, registered, failed, null Whether the registration renews itself before expires_at; null for a domain connected rather than bought here. Change it with PATCH auto_renew.
True when the domain serves every published page of the account at https:///.

