hosting
PUT /v1/sites/{siteId}/wordpress/update-policy/components
Switch one plugin's or theme's auto-update, as an exception to the site switch.
Authentication
Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/wordpress/update-policy/components \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "kind": <string<plugin, theme>>, "name": <string>, "auto_update": <string<on, off, default>> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
P3-065. on or off stores an exception for this one plugin or theme; default removes it, so it follows the site-wide plugins/themes switch again. The whole policy is then applied to the site and the site re-read, like setSiteWordPressUpdatePolicy: the response is a fresh read, never an echo. ⛔ A later change of the site-wide policy keeps every exception. At most 500 exceptions per kind per site. ⛔ Fleet only — refused where wp_update_policy is false. Requires sites.view and sites.panel_access.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
kind | string<plugin, theme> | Yes | — |
name | string | Yes | The plugin or theme folder name, as WordPress lists it. |
auto_update | string<on, off, default> | Yes | on/off set an exception; default removes it. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
core | string<off, minor, all> | Yes | The stored policy for WordPress core updates. |
plugins | boolean | Yes | The stored policy — whether every plugin should auto-update. |
themes | boolean | Yes | The stored policy — whether every theme should auto-update. |
ring | string<canary, early, general> | Yes | The staged-rollout ring this site belongs to. |
applied_at | string | Yes | When the policy last reached the site, ISO-8601, or "" if it never has. ⛔ A timestamp and not a flag: "when did this last reach the site" is the question an operator asks, and a… |
apply_error | string | Yes | Why the last apply failed, or "". Kept beside applied_at rather than replacing it, so a failed re-apply does not erase that an earlier one worked. |
observed_read | boolean | Yes | Whether the site itself was read. ⛔ An empty drift is only meaningful while this is true. |
observed_core | string | Yes | What WP_AUTO_UPDATE_CORE is set to on the site — off, minor, all, or "" meaning the constant is not defined at all, so WordPress applies its own default. ⛔ "" is… |
plugins_off | string[] | Yes | The plugins on this site that are NOT auto-updating. |
themes_off | string[] | Yes | The themes on this site that are NOT auto-updating. |
drift | string<core, plugins, themes>[] | Yes | Which of core, plugins, themes the site disagrees with the policy about. |
plugins_on | string[] | Yes | The plugins on this site that ARE auto-updating; with plugins_off, every plugin that can. |
themes_on | string[] | Yes | The themes on this site that ARE auto-updating. |
plugin_overrides | object | Yes | Per-plugin exceptions to the plugins switch, {folder name: true|false}. A plugin not named here follows the switch. ⛔ A re-apply of the site-wide policy keeps them. |
theme_overrides | object | Yes | Per-theme exceptions to the themes switch, {folder name: true|false}. |
plugins_drifted | string[] | Yes | The plugins whose observed auto-update is not what they should be (their exception when they have one, else the plugins switch), in both directions. |
themes_drifted | string[] | Yes | The themes whose observed auto-update is not what they should be. |
Errors this endpoint can return
400 · 401 · 403 · 404 · 422 · 429 · 503