hosting
DELETE /v1/sites/{siteId}/wordpress/plugins/{pluginName}
Remove a plugin from a site's WordPress.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/wordpress/plugins/{pluginName} \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Deactivates the plugin, then deletes its files. Whatever it stored in the database stays, and whatever it was doing for the site stops — so the client confirms the name back before calling. A must-use plugin or a drop-in (both appear in the listing) is refused 422: they are managed by the platform. ⭐ On our own servers the files are removed by the platform as the site's own user, not by wp plugin delete, which shells out through PHP's proc_open() — disabled on every site by the hosting hardening — and failed 422 on every site until 2026-09-29 (D28100). ⛔ The listing is re-read afterwards and a plugin that survived the removal is reported as a refusal rather than a success: the platform acknowledges a delete it did not perform, and a card that removed the row locally would show the customer a plugin that is still running. 200 and the whole listing, not 204, because the card renders the remaining plugins from this answer. 404 for a site with no vendor hosting package. Requires sites.view and sites.panel_access.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
pluginName (path) | string | Да | The plugin's slug, exactly as listSiteWordPressPlugins reports it. It is WordPress's identifier, not ours, so percent-encode it; a slug containing a slash does not route and… |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | SiteWordPressPlugin[] | Да | The installed plugins. |
stack_cache_installed | boolean | Да | ⛔ 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… |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 409 · 422 · 429 · 503