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