hosting

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

Turn tiered caching on or off.

Svi hosting krajnji točke

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu hosting.cdn.manage; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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> }'

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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`.

Parametri

NazivVrstaObaveznoŠto je to
siteId (path)UuidDaSite ID (UUIDv7).

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
enabledbooleanDa

Odgovor

NazivVrstaObaveznoŠto je to
site_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanDaA fact about the **driver** — whether this provider has the feature at all.
tiered_cachebooleanDa
tiered_cache_editablebooleanDaA 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_routingbooleanDa`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_editablebooleanDa

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 404 · 422 · 429 · 503