hosting

PUT /v1/sites/{siteId}/wordpress/plugins/{pluginName}

Activate or deactivate a plugin on a site.

Dukkan hosting wuraren ƙarshe

Dukan takardun mai haɓakawa

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin sites.view; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/wordpress/plugins/{pluginName} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "active": <boolean> }'

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

Sets whether the plugin is active, and returns the whole plugin listing so the card re-renders from the server's answer. The plugin is addressed by path rather than by a field in the body, so activate and delete cannot be confused for one another by a caller that got a body wrong. Deactivating a plugin can take a live site's checkout, cache or security layer with it. Refused 422 when the package type does not carry wp_plugins, or when WordPress is not installed. 404 for a site with no vendor hosting package. Requires sites.view and sites.panel_access.

Sigogi

SunaNau'iAna buƙataAbin da yake
siteId (path)UuidEhSite ID (UUIDv7).
pluginName (path)stringEhThe 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…

Jikin buƙata

SunaNau'iAna buƙataAbin da yake
activebooleanEhWhether the plugin should be running after this call.

Martani

SunaNau'iAna buƙataAbin da yake
dataSiteWordPressPlugin[]EhThe installed plugins.
stack_cache_installedbooleanEhCannot 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…

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 404 · 409 · 422 · 429 · 503