hosting

POST /v1/wordpress/refresh

Collect a named handful of sites in one call.

Lahat ng hosting endpoint

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 POST https://api.zinndigital.com/v1/wordpress/refresh \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "site_ids": <string[]> }'

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

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`.

Katawan ng kahilingan

PangalanUriKailanganAno ito
site_idsstring[]Oo

Tugon

PangalanUriKailanganAno ito
dataWordPressRefreshResult[]Oo

Mga error na maibabalik ng endpoint na ito

401 · 403 · 422 · 429