hosting
POST /v1/sites/{siteId}/wordpress/themes/{themeName}/update
Update one theme to its latest release.
Doğrulama
API açarını bearer token kimi göndərin. Açar sites.view icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.
Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.
Sınaqdan keçir
Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/wordpress/themes/{themeName}/update \
-H "Authorization: Bearer zdk_live_…"Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın
Təfərrüatlar
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`.
Parametrlər
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
siteId (path) | Uuid | Bəli | Site ID (UUIDv7). |
themeName (path) | string | Bəli | The theme's slug, exactly as `listSiteWordPressThemes` reports it. |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
data | SiteWordPressTheme[] | Bəli | The installed themes. |
Bu son nöqtənin qaytara biləcəyi xətalar
401 · 403 · 404 · 422 · 429 · 503