Autenticazione
Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione sites.cache.purge; 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 POST https://api.zinndigital.com/v1/domains/{domainId}/cache/purge \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'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
Purge the CDN cache for a domain now. Omit `urls` to purge everything, or pass a bounded list of absolute URLs to purge only those. Exposed on the dashboard and the MCP server through the same service, so the two cannot diverge (docs/19 §5.4). A domain not served through our CDN is a `404`. Requires `sites.cache.purge`.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
domainId (path) | Uuid | Sì | The domain's id. |
Corpo della richiesta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
urls | string[] | No | Absolute URLs to purge. Omit or empty to purge all cached content. |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
purged | boolean | Sì | — |
urls | integer | Sì | How many URLs were targeted (0 = a full purge). |
Errori che questo endpoint può restituire
401 · 403 · 404 · 429