Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.cache.purge; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/cdn/purge \
  -H "Authorization: Bearer zdk_live_…"

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Purges the whole zone for this site. The engine verifies the site owns the domain before purging, because on a pooled CDN account a zone resolves by name alone and an unchecked purge could clear a different tenant's cache — so the hostname is read off the site row and the request body must be empty. A body carrying a domain, zone or urls key is a 422, not a silently ignored field. A site that is not served through our CDN is a 404, answered before any vendor call. Idempotency-Key is accepted and requires no de-duplication here: purging a zone twice has the same effect as purging it once. Requires sites.cache.purge.

Параметри

НазивТипОбавезноШта је ово
siteId (path)UuidДаSite ID (UUIDv7).
Idempotency-Key (header)stringНеClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Одговор

НазивТипОбавезноШта је ово
purgedbooleanДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429 · 503