hosting

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

Get a site's PHP version.

Všechny koncové body hosting

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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

Parametry

NázevTypPožadovánoCo to je
siteId (path)UuidAnoSite ID (UUIDv7).

Odpověď

NázevTypPožadovánoCo to je
versionstringAnoThe site's effective PHP version (its own, or its line's default).
availablestring[]AnoVersions the site may switch to — those offered for its product line, plus its own current version even if that has since been retired (grandfathered).
appliedbooleanNeWhether 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…

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 429