hosting

GET /v1/sites/{siteId}/php-version

Get a site's PHP version.

Tutti gli endpoint hosting

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione sites.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/php-version \
  -H "Authorization: Bearer zdk_live_…"

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

Returns the site's current PHP version and `available` — the versions it may switch to (those offered for its product line, plus its own current version even if that has since been retired, so a grandfathered selection is still shown). RLS-scoped; an out-of-scope or unknown id is a `404`. Requires `sites.view`.

Parametri

NomeTipoObbligatorioChe cos'è
siteId (path)UuidSite ID (UUIDv7).

Risposta

NomeTipoObbligatorioChe cos'è
versionstringThe site's effective PHP version (its own, or its line's default).
availablestring[]Versions the site may switch to — those offered for its product line, plus its own current version even if that has since been retired (grandfathered).
appliedbooleanNoWhether the machine serving this site was actually told, and the change read back off it. Present on the `PUT` response only. `false` is not a failure: it means the site has no…

Errori che questo endpoint può restituire

401 · 403 · 404 · 429