hosting

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

Turn tiered caching on or off.

Все эндпоинты hosting

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

Отправьте ключ 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).

Тело запроса

ИмяТипОбязательноЧто это
enabledbooleanДа

Ответ

ИмяТипОбязательноЧто это
site_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanДаA fact about the **driver** — whether this provider has the feature at all.
tiered_cachebooleanДа
tiered_cache_editablebooleanДа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_routingbooleanДа`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_editablebooleanДа

Ошибки, которые может возвращать этот эндпоинт

401 · 403 · 404 · 422 · 429 · 503