Autentikasi
Kirimkan kunci API sebagai token bearer. Titik akhir ini tidak menyatakan izin tertentu dalam spesifikasi, jadi berikan kunci Anda izin minimum yang diperlukan dan periksa responsnya alih-alih berasumsi.
Endpoint ini tidak memerlukan id organisasi. Kunci Anda telah mengidentifikasi organisasi tempatnya berafiliasi, dan respons akan dibatasi untuk organisasi tersebut.
Coba
Ganti apa pun di dalam tanda kurung sudut dengan nilai Anda sendiri, dan placeholder kunci dengan kunci dari dasbor Anda.
curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Sudah masuk? Konsol API di dasbor Anda akan mengisi ID organisasi asli dan kunci Anda sendiri, serta menjalankan permintaan terhadap API langsung sehingga Anda dapat melihat respons aktualnya. Buka titik akhir ini di konsol API
Detail
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.
Isi permintaan
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
brief | string | Tidak | — |
site_ids | string[] | Tidak | — |
anchors | ContentRunAnchor[] | Tidak | — |
category | string | Tidak | — |
publish_policy | ContentRunPublishPolicy | Tidak | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
interval_hours | integer | Tidak | — |
enabled | boolean | Tidak | — |
recipe_id | string | Tidak | — |
Tanggapan
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
id | string | Ya | — |
enabled | boolean | Ya | — |
interval_hours | integer | Ya | — |
next_run_at | string | Ya | — |
last_run_at | string | Tidak | — |
last_run_id | string | Tidak | — |
brief | string | Ya | — |
category | string | Tidak | — |
publish_policy | ContentRunPublishPolicy | Ya | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
site_ids | string[] | Ya | — |
recipe_id | string | Tidak | — |
Kesalahan yang dapat dikembalikan oleh titik akhir ini
401 · 403 · 422