Domains and DNS
Change a domain's settings
PATCH/api/v1/domains/:domain
Who can use this: Site adminsAs Markdown
Send only what you want to change; the rest stays as it is. The answer is the domain's settings afterwards.
Parameters
| Name | Where | What it is |
| domain required |
path |
The domain name.e.g. example.com |
| mail_enabled |
body |
Accept mail for the domain.e.g. true |
| dns_managed |
body |
Whether its DNS zone is kept here. Only the setting changes; no zone is created or removed. |
| active |
body |
false turns the whole domain off, as Disable a domain does; true turns it back on. |
Good to know
- A domain that isn't listed answers 404.