hosting
GET /v1/sites/{siteId}/build-env
The build variable NAMES a site holds — never their values.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/build-env \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
A build variable is routinely an API key, so there is deliberately no endpoint anywhere in this API that reads one back. This returns the names, which is what a customer needs to see what is set and replace or remove it. The values live in Vault, per site. Requires sites.view. A site that has never had variables answers 200 with an empty list — that is not an error. A secret store that cannot be READ answers 503: the two are deliberately distinguishable, because a store we cannot reach reported as "no variables" is a build that silently ships without its keys.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
names | string[] | Да | The variable names this site holds, sorted. |
applied | boolean | Не | Present only on a save to a Node.js, Python or Ruby site on our own servers: true means the running application received the variables and was restarted, false that it is not… |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429 · 503