hosting

POST /v1/sites/{siteId}/wordpress/plugins/{pluginName}/update

Update one plugin to its latest release.

Todos os endpoints de hosting

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.view; uma chave sem ela é recusada com 403, e não 404.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

Updates a single plugin and returns the whole plugin list. The listing is re-read rather than patched: an update can deactivate a plugin whose new version declares a requirement the site does not meet, and a client shown an optimistic guess would render it as active. Idempotent, and its own path segment, for the same reasons as the theme twin above. ⛔ **Fleet only** — refused where `wp_component_updates` is `false`. Requires `sites.view` and `sites.panel_access`.

Parâmetros

NomeTipoObrigatórioO que é
siteId (path)UuidSimSite ID (UUIDv7).
pluginName (path)stringSimThe plugin's slug, exactly as `listSiteWordPressPlugins` reports it.

Resposta

NomeTipoObrigatórioO que é
dataSiteWordPressPlugin[]SimThe installed plugins.
stack_cache_installedbooleanSim⛔ **Cannot be derived from `data`.** this platform excludes its own server-side cache plugin from the listing, so a client deriving this flag from the rows would answer "not ins…

Erros que este endpoint pode retornar

401 · 403 · 404 · 422 · 429 · 503