hosting

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

Turn tiered caching on or off.

すべての hosting エンドポイント

すべての開発者向けドキュメント

認証

ベアラー トークンとして API キーを送信します。キーには hosting.cdn.manage 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

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コンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブ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 will…
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 · 502 · 503