hosting
POST /v1/wordpress/refresh
Collect a named handful of sites in one call.
Pengesahan
Hantar kunci API sebagai token pembawa. Kunci tersebut mesti membawa kebenaran sites.view; kunci yang tidak mempunyainya akan ditolak dengan 403, bukan 404.
Titik akhir ini tidak memerlukan id organisasi. Kunci anda telah mengenal pasti organisasi kepunyaannya, dan respons dis skopkan kepadanya.
Cuba
Gantikan apa sahaja di dalam kurungan sudut dengan nilai anda sendiri, dan pemegang tempat kunci dengan kunci dari papan pemuka anda.
curl -X POST https://api.zinndigital.com/v1/wordpress/refresh \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "site_ids": <string[]> }'Sudah log masuk? Konsol API dalam papan pemuka anda mengisi id organisasi sebenar dan kunci anda sendiri, serta menjalankan permintaan terhadap API langsung supaya anda boleh melihat respons sebenar. Buka penamat ini dalam konsol API
Butiran
Collects up to 25 sites' WordPress posture from their platforms. ⛔ Capped because each site is a real vendor conversation, and a customer with four hundred sites pressing *"refresh everything"* must not be able to turn their own screen into a rate-limit incident. ⛔ **One site's failure never fails the call.** The response reports per site, because the interesting answer on an estate is usually *"eleven collected and one refused, here is which"* — and a 4xx for the whole batch would hide it. A site outside the caller's scope comes back `skipped`, never `404`, so this can never confirm whether a foreign site id exists. Requires `sites.view` **and** `sites.panel_access`.
Badan permintaan
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
site_ids | string[] | Ya | — |
Respons
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
data | WordPressRefreshResult[] | Ya | — |
Ralat yang boleh dikembalikan oleh titik akhir ini
401 · 403 · 422 · 429