hosting
DELETE /v1/sites/{siteId}/edge-domains/{hostname}
Stop serving this hostname from the deploy target.
Autenticazione
Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione hosting.deploy.manage; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/edge-domains/{hostname} \
-H "Authorization: Bearer zdk_live_…"Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API
Dettagli
Detaches the hostname at the provider and forgets it here. The DNS records are deliberately left in place: they are in the customer's zone, and a name that has stopped serving is a fixable state while a record we silently deleted is not. Requires `hosting.deploy.manage`.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
siteId (path) | Uuid | Sì | Site ID (UUIDv7). |
hostname (path) | string | Sì | The bound hostname, lower-cased and without a trailing dot. |
Errori che questo endpoint può restituire
401 · 403 · 404 · 422 · 429