hosting

POST /v1/sites/{siteId}/rename-domain

Change a site's primary domain (asynchronous).

Vituo vyote vya hosting

Uthibitishaji

Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya sites.create; ufunguo usio nayo unakataliwa kwa 403, si 404.

Endpoint hii haichukui kitambulisho cha shirika. Ufunguo wako tayari unalitambua shirika linalohusika, na jibu limewekewa kikomo kwa shirika hilo pekee.

Jaribu

Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/rename-domain \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "new_domain": <Hostname> }'

Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API

Maelezo

Starts the durable **rename-domain** saga for a site (new-side setup → flip → old-side teardown, register #91). Returns `202 Accepted` immediately — the work runs as a Temporal workflow; poll the site or subscribe to `site.*` events for completion. Requires `sites.create` (the same authority that provisions a site). Idempotent on the site: a repeat call while the saga is running is accepted and does not start a second run.

Vigezo

JinaAinaInayohitajikaKilicho hiki
siteId (path)UuidNdiyoSite ID (UUIDv7).

Mwili wa ombi

JinaAinaInayohitajikaKilicho hiki
new_domainHostnameNdiyoThe site's new primary domain (FQDN).
keep_old_as_aliasbooleanHapanaKeep serving the old domain as an alias of the site after the flip.

Majibu

JinaAinaInayohitajikaKilicho hiki
site_idUuidNdiyoUUIDv7 identifier — sortable by creation time (docs/02 §8).
new_domainHostnameNdiyoA fully-qualified DNS hostname, lowercase, no trailing dot.
workflow_idstringNdiyoThe Temporal workflow id running the rename saga (deterministic per site).
statusstring<accepted>NdiyoThe saga was accepted; poll the site / `site.*` events for completion.

Hitilafu ambazo mwisho huu unaweza kurudisha

401 · 403 · 404 · 409 · 422 · 429 · 503