hosting

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

Run one scheduled task now.

ټول hosting پای ټکي

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د sites.view اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.

دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.

هڅه وکړئ

د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.

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 په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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).

د غوښتنې بدن

نومډولاړیندا څه شی دی
hookstringهو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 re…

ځواب

نومډولاړیندا څه شی دی
dataSiteWordPressCronEvent[]هو

تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي

401 · 403 · 404 · 422 · 429 · 503