hosting
GET /v1/sites/{siteId}/cdn/optimisations
Every edge optimisation available on the site, and whether it is on.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea sites.view; o cheie care nu o are va fi respinsă cu 403, nu 404.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/optimisations \
-H "Authorization: Bearer zdk_live_…"Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
`risk_levels` and `classes` are derived from the returned rows rather than fixed, so a vendor that introduces a new risk level does not silently drop a whole group of optimisations out of a client that groups by a hardcoded list. `display_name` is generated from the machine name. ⛔ The vendor's own `DisplayName` field is an **untranslated i18n key** (`add_base_tag_title`) and is never carried to a client. Requires `sites.view`.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
siteId (path) | Uuid | Da | Site ID (UUIDv7). |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
data | SiteCdnOptimisation[] | Da | — |
risk_levels | string[] | Da | Every risk level present in `data`, derived rather than fixed. |
classes | string[] | Da | Every optimisation class present in `data`, derived rather than fixed. |
Erori pe care le poate returna acest punct final
401 · 403 · 404 · 429 · 503