hosting

POST /v1/sites/{siteId}/cdn/profile

Re-apply the recommended CDN profile to a site's zone.

Të gjitha pikat e skajshme hosting

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen hosting.cdn.manage; një çelës pa të refuzohet me 403, jo 404.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/cdn/profile \
  -H "Authorization: Bearer zdk_live_…"

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

Puts the zone back to our recommended settings and cache rules — the "reset to recommended defaults" action. Idempotent: applying a profile that is already in force changes nothing at the provider. There is **no request body**. These are pooled provider accounts carrying other customers' zones and a zone resolves by name alone, so the hostname is read from the site row and there is no field through which a neighbouring zone could be named. Settings are applied before cache rules, never the other way round: the rules include a cache-everything rule and the settings include the edge-to-origin TLS mode, so the reverse order would briefly cache pages fetched over a leg whose TLS mode had not yet been corrected. A provider that cannot express part of the profile is reported per capability in the response rather than failing the call. Requires `hosting.cdn.manage`.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
siteId (path)UuidPoSite ID (UUIDv7).

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
site_idUuidPoUUIDv7 identifier — sortable by creation time (docs/02 §8).
profilestringPoWhich recommended profile applies to this site, chosen by product line — `footprint_free` caches HTML aggressively, `mainstream` leaves that decision to the origin.
settings_supportedbooleanPoWhether this site's CDN can express the profile's zone settings.
cache_rules_supportedbooleanPoWhether this site's CDN can express per-request cache rules. Separate from `settings_supported` because a provider may offer one and not the other.
driftedstring[]PoSetting keys whose live value differs from the recommendation, plus `cache_rules` when a recommended rule is missing at the provider. Empty means the zone matches what we recomm…
settingsSiteCdnProfileSetting[]Po
rulesSiteCdnProfileRule[]PoThe recommended rules, in evaluation order. Bypasses come first.
managedbooleanPoWhether the customer has asked us to keep this profile applied. `false` — the default — means drift is reported and nothing is corrected without a person pressing the button. `t…

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 429 · 503