Uthibitishaji
Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya sites.cache.purge; 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/domains/{domainId}/cache/purge \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'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
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`.
Vigezo
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
domainId (path) | Uuid | Ndiyo | The domain's id. |
Mwili wa ombi
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
urls | string[] | Hapana | Absolute URLs to purge. Omit or empty to purge all cached content. |
Majibu
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
purged | boolean | Ndiyo | — |
urls | integer | Ndiyo | How many URLs were targeted (0 = a full purge). |
Hitilafu ambazo mwisho huu unaweza kurudisha
401 · 403 · 404 · 429