hosting

PUT /v1/sites/{siteId}/cdn/tiered-cache

Turn tiered caching on or off.

Všechny koncové body hosting

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění hosting.cdn.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/cdn/tiered-cache \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": <boolean> }'

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

Refused **before** the provider is called when the zone's plan does not include it, because the provider's own refusal is a 4xx we cannot phrase usefully and a save button that produced it would look like our bug rather than their plan. Requires `hosting.cdn.manage`.

Parametry

NázevTypPožadovánoCo to je
siteId (path)UuidAnoSite ID (UUIDv7).

Tělo požadavku

NázevTypPožadovánoCo to je
enabledbooleanAno

Odpověď

NázevTypPožadovánoCo to je
site_idUuidAnoUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanAnoA fact about the **driver** — whether this provider has the feature at all.
tiered_cachebooleanAno
tiered_cache_editablebooleanAnoA fact about the **zone's plan**, reported separately from `supported`. A free zone answers `false` and the control must be disabled rather than offering a save the provider wil…
smart_routingbooleanAno`null` — never `false` — when the provider refuses to report it. `false` would tell a customer that a paid feature they are not buying is switched off.
smart_routing_editablebooleanAno

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 422 · 429 · 503