hosting
GET /v1/sites/{siteId}/wordpress/activity
What changed on this WordPress, and who changed it.
Նույնականացում
Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա sites.view թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:
Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:
Փորձել
Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/wordpress/activity \
-H "Authorization: Bearer zdk_live_…"Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում
Մանրամասներ
Every change this platform made to the site's WordPress — plugins and themes installed, activated, updated or deleted, users created and demoted, core updates, search-replaces, maintenance mode, console commands and update-policy changes — newest first. ⛔ Bounded twice, and both bounds are returned rather than assumed: a `window_days` window and a row `limit`. `AuditLog` is time-partitioned, so the window keeps the query off every historical partition and the limit keeps one very busy site from returning a response nobody can render. A screen that showed rows without stating the window would read as *"this is everything"*. ⛔ `action` is a stable **code**, never a sentence — the client owns the wording, in every locale. `detail` carries the names of what changed and never a password, console output or an uploaded archive. Requires `sites.view`.
Պարամետրեր
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
siteId (path) | Uuid | Այո | Site ID (UUIDv7). |
Պատասխան
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
data | SiteWordPressActivityEntry[] | Այո | — |
window_days | integer | Այո | How far back this read looked. ⛔ Returned, not assumed — a screen that renders rows without stating the window reads as "this is everything". |
limit | integer | Այո | The most rows one read returns. |
Այս վերջնակետի կողմից վերադարձվող սխալները
401 · 403 · 404 · 429 · 503