hosting
POST /v1/sites/{siteId}/dns/move
Move this site's DNS zone to another free DNS provider.
Authentication
Send an API key as a bearer token. The key must carry the domains.dns.manage permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/dns/move \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "to_vendor": <string> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Starts a durable move of the site's zone to to_vendor and answers 202 with the move to poll (getSiteDnsMove). The workflow builds the new zone, copies every record (apex NS/SOA excepted), switches the site's placement, sets the domain's nameservers where we hold it, waits until the new nameservers are observed answering, and only then removes the old zone. Any failure before the switch rolls back and the site keeps resolving where it was. ⛔ A paid provider (Route 53) is refused here (422): it is moved to by buying its add-on for this site (purchaseExtra, site_id), whose fulfilment starts this same workflow. Also refused: a site on its own DNS account, a site with no domain, the provider it is already on, a move already in progress, and a provider not offered to this site. Requires domains.dns.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
to_vendor | string | Yes | A free provider from getSiteDnsMove's choices (paid false). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
status | string<pending, creating, copying, awaiting_delegation, completed, rolled_back, failed> | Yes | awaiting_delegation: both zones answer with the same records and the move waits for the domain's nameservers to show nameservers; nothing is removed until then. |
from_vendor | string | Yes | — |
to_vendor | string | Yes | — |
paid | boolean | Yes | Started by a paid add-on purchase. |
nameservers | string[] | Yes | The new zone's nameservers (set at the registrar if we do not hold the domain). |
records_copied | integer | Yes | — |
delegation_observed | boolean | Yes | — |
delegation_observed_at | object | Yes | When the domain's public nameservers were first seen showing nameservers (RECOVER r36). Set while the status is still awaiting_delegation: the old zone is kept answering for a… |
old_zone_kept_until | object | Yes | When the old provider's zone is removed and the move completes: delegation_observed_at plus the safety window. Null until delegation is observed. |
detail | string | Yes | Why a move rolled back or failed (empty otherwise). |
created_at | object | Yes | — |
completed_at | object | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 503