links
POST /v1/content/run-schedules
Post to these sites every N hours.
Autentifikimi
Drgoni një çelës API si një token mbajtës. Ky pikëndalim nuk specifikon një leje specifike në specifikim, prandaj jepini çelësit tuaj minimumin e nevojshëm dhe kontrolloni përgjigjen në vend që të supozoni.
Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.
Provoje
Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.
curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së
Detajet
Creates a cadence. The first run happens one interval from now, not immediately — a customer setting up a daily schedule at 4pm expects one tomorrow, not one before they have finished reading the form. Gated on `links.edit`. The cadence is served by a durable workflow on the worker, not by a job that calls this API back, so a scheduled run behaves identically to one started by hand. Minimum interval is one hour: anything finer on a private network is a footprint.
Trupi i kërkesës
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
brief | string | Jo | — |
site_ids | string[] | Jo | — |
anchors | ContentRunAnchor[] | Jo | — |
category | string | Jo | — |
publish_policy | ContentRunPublishPolicy | Jo | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
interval_hours | integer | Jo | — |
enabled | boolean | Jo | — |
recipe_id | string | Jo | — |
Përgjigja
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
id | string | Po | — |
enabled | boolean | Po | — |
interval_hours | integer | Po | — |
next_run_at | string | Po | — |
last_run_at | string | Jo | — |
last_run_id | string | Jo | — |
brief | string | Po | — |
category | string | Jo | — |
publish_policy | ContentRunPublishPolicy | Po | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
site_ids | string[] | Po | — |
recipe_id | string | Jo | — |
Gabimet që ky pikëndalim mund të kthejë
401 · 403 · 422