hosting
POST /v1/sites/{siteId}/wordpress/cron
Run one scheduled task now.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
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> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
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.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
hook | string | Да | The 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 read… |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | SiteWordPressCronEvent[] | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429 · 503