hosting

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

Update one theme to its latest release.

Wszystkie punkty końcowe hosting

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie sites.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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.

Parametry

NazwaTypWymaganeCo to jest
siteId (path)UuidTakSite ID (UUIDv7).
themeName (path)stringTakThe theme's slug, exactly as listSiteWordPressThemes reports it.

Odpowiedź

NazwaTypWymaganeCo to jest
dataSiteWordPressTheme[]TakThe installed themes.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422 · 429 · 503