hosting
PUT /v1/sites/{siteId}/cdn/tiered-cache
Turn tiered caching on or off.
Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл hosting.cdn.manage; ключ без нього відхиляється з кодом 403, а не 404.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
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> }'Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API
Деталі
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`.
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
siteId (path) | Uuid | Так | Site ID (UUIDv7). |
Тіло запиту
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
enabled | boolean | Так | — |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
site_id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
supported | boolean | Так | A fact about the **driver** — whether this provider has the feature at all. |
tiered_cache | boolean | Так | — |
tiered_cache_editable | boolean | Так | A 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_routing | boolean | Так | `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_editable | boolean | Так | — |
Помилки, які може повертати ця кінцева точка
401 · 403 · 404 · 422 · 429 · 503