hosting
POST /v1/sites/{siteId}/wordpress/stack-cache
Install the server-side cache plugin on a site.
אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/wordpress/stack-cache \
-H "Authorization: Bearer zdk_live_…"מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
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`.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
siteId (path) | Uuid | כן | Site ID (UUIDv7). |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
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 ins… |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 409 · 422 · 429 · 503