hosting
GET /v1/sites/{siteId}/hosting/applications
List the one-click applications installable on a site's package.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/hosting/applications \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The applications available on this package, by name, read live from the vendor so the list cannot go stale in our copy (docs/62 §6g). These are application names — proper nouns like wordpress — so the client renders them as names and does not translate them. 404 for a site with no vendor package. Requires sites.view.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | SiteApplication[] | Да | — |
current | SiteApplicationInstall | Не | The site's most recent install and its outcome, or null if none has ever been requested. The latest row rather than the latest in-flight one, so a finished install still… |
installable | boolean | Не | Whether an install on this site could actually succeed. false means the site's hosting plan has no one-click installer at all, and every entry in data would be refused. ⛔… |
unavailable_reason | string | Не | Stable machine identifier for why installable is false; empty when it is true. An i18n key suffix the client localises — never display text, and never a vendor string.… |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429 · 503