hosting
GET /v1/sites/{siteId}/wordpress/activity
What changed on this WordPress, and who changed it.
Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na sites.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/wordpress/activity \
-H "Authorization: Bearer zdk_live_…"Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
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`.
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
siteId (path) | Uuid | Oo | Site ID (UUIDv7). |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
data | SiteWordPressActivityEntry[] | Oo | — |
window_days | integer | Oo | 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 | Oo | The most rows one read returns. |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 404 · 429 · 503