hosting

POST /v1/sites/{siteId}/dns/move

Move this site's DNS zone to another free DNS provider.

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).

Request body

NameTypeRequiredWhat it is
to_vendorstringYesA free provider from getSiteDnsMove's choices (paid false).

Response

NameTypeRequiredWhat it is
idstringYes—
statusstring<pending, creating, copying, awaiting_delegation, completed, rolled_back, failed>Yesawaiting_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_vendorstringYes—
to_vendorstringYes—
paidbooleanYesStarted by a paid add-on purchase.
nameserversstring[]YesThe new zone's nameservers (set at the registrar if we do not hold the domain).
records_copiedintegerYes—
delegation_observedbooleanYes—
delegation_observed_atobjectYesWhen 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_untilobjectYesWhen the old provider's zone is removed and the move completes: delegation_observed_at plus the safety window. Null until delegation is observed.
detailstringYesWhy a move rolled back or failed (empty otherwise).
created_atobjectYes—
completed_atobjectYes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 503