hosting

POST /v1/sites/{siteId}/wordpress/stack-cache

Install the server-side cache plugin on a site.

Svi hosting krajnji točke

Sva developerska dokumentacija

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu sites.view; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

Installs the platform's own caching plugin. It has its own operation rather than being a row in the plugin listing because the vendor excludes it from that listing, so it can neither be found there nor installed through it. Success is confirmed by the vendor's own stackCacheInstalled flag, never by searching the returned rows for it — searching a list the plugin is deliberately absent from would report failure on every successful install. 201 and the whole plugin listing, so the card re-renders. 404 for a site with no vendor hosting package. Requires sites.view and sites.panel_access.

Parametri

NazivVrstaObaveznoŠto je to
siteId (path)UuidDaSite ID (UUIDv7).

Odgovor

NazivVrstaObaveznoŠto je to
dataSiteWordPressPlugin[]DaThe installed plugins.
stack_cache_installedbooleanDaCannot 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…

Pogreške koje ova krajnja točka može vratiti

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