Аутентификация

Отправьте ключ API в качестве токена носителя (bearer token). Ключ должен иметь разрешение sites.view; ключ без него отклоняется с кодом 403, а не 404.

Этот эндпоинт не принимает идентификатор организации. Ваш ключ уже определяет организацию, к которой он принадлежит, и ответ ограничивается ее рамками.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/php-config \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "values": <object> }'

Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему API, чтобы вы могли увидеть актуальный ответ. Откройте эту конечную точку в API-консоли

Подробнее

Applies the complete set of overrides. An omitted name is cleared, and {} resets every setting to the machine's defaults — deliberately not a PATCH, because "return this to the platform default" and "pin it to the value that default happens to have today" are different intentions and only a whole-set write can express the first. Values are validated against the machine's own published range before the vendor sees them, so a bad value is refused in our words rather than failing later as an unexplained vendor error. The write is then read back off the machine and a value it quietly declined is a failure here, never a success the customer discovers is untrue. 409 when the site has no machine to hold the setting. Requires sites.view + sites.panel_access.

Параметры

ИмяТипОбязательноЧто это
siteId (path)UuidДаSite ID (UUIDv7).

Тело запроса

ИмяТипОбязательноЧто это
valuesobjectДа

Ответ

ИмяТипОбязательноЧто это
supportedbooleanДаWhether this site's hosting publishes changeable PHP settings.
reasonstringДаWhy there are none, in words a customer can act on. Empty when supported is true.
optionsSitePhpOption[]Да
moved_to_plan_settingsstring[]НетDirectives the vendor publishes but whose legal range is OUR policy, so they are returned by getSitePhpSettings (with the plan's cap) instead of here. Named rather than silently…

Ошибки, которые может возвращать этот эндпоинт

401 · 403 · 404 · 409 · 422 · 429 · 503