hosting

POST /v1/sites/{siteId}/wordpress/themes/{themeName}/update

Update one theme to its latest release.

Усі кінцеві точки hosting

Уся документація для розробників

Автентифікація

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

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/wordpress/themes/{themeName}/update \
  -H "Authorization: Bearer zdk_live_…"

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

Деталі

Updates a single theme and returns the whole theme list. ⛔ Its own path segment, not a field on the PUT beside activate/deactivate. Updating replaces the theme's files on a live site; activating changes which one renders. A caller that got a body wrong must not be able to reach the first by aiming at the second — the rule every destructive operation on this surface follows. Idempotent: a theme already on its latest version is a successful no-op, so a caller may run this across a selection without first filtering to the ones that need it. ⛔ Fleet only — this platform has no per-component update verb at any path (only updateSiteWordPressCore, which moves WordPress itself). Refused where wp_component_updates is false. Requires sites.view and sites.panel_access.

Параметри

НазваТипОбов'язковеЩо це таке
siteId (path)UuidТакSite ID (UUIDv7).
themeName (path)stringТакThe theme's slug, exactly as listSiteWordPressThemes reports it.

Відповідь

НазваТипОбов'язковеЩо це таке
dataSiteWordPressTheme[]ТакThe installed themes.

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422 · 429 · 503