hosting

POST /v1/sites/{siteId}/wordpress/cron

Run one scheduled task now.

Všechny koncové body hosting

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/wordpress/cron \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "hook": <string> }'

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

Runs a single named task immediately and returns the queue as it then reads. ⛔ The hook is **confirmed to exist before it is run**. Running an unknown hook fails with the scheduler's own words, which we would surface as "we could not run it" — true, unactionable, and indistinguishable from a real failure. Naming it back is the difference, so a hook that has since disappeared is a refusal that says so. ⛔ This addresses **one named hook**, never "everything currently due". A button labelled with one task's name must not have the blast radius of the whole queue. Refused where `wp_cron` is `false`. Requires `sites.view` and `sites.panel_access`.

Parametry

NázevTypPožadovánoCo to je
siteId (path)UuidAnoSite ID (UUIDv7).

Tělo požadavku

NázevTypPožadovánoCo to je
hookstringAnoThe hook name, exactly as `listSiteWordPressCronEvents` reports it. A closed alphabet, because this value reaches the scheduler as an argument — nothing a caller types can be re…

Odpověď

NázevTypPožadovánoCo to je
dataSiteWordPressCronEvent[]Ano

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 422 · 429 · 503

POST /v1/sites/{siteId}/wordpress/cron — Zinn Digital® API