אימות
שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
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.
גוף הבקשה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
brief | string | לא | — |
site_ids | string[] | לא | — |
anchors | ContentRunAnchor[] | לא | — |
category | string | לא | — |
publish_policy | ContentRunPublishPolicy | לא | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
interval_hours | integer | לא | — |
enabled | boolean | לא | — |
recipe_id | string | לא | — |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
id | string | כן | — |
enabled | boolean | כן | — |
interval_hours | integer | כן | — |
next_run_at | string | כן | — |
last_run_at | string | לא | — |
last_run_id | string | לא | — |
brief | string | כן | — |
category | string | לא | — |
publish_policy | ContentRunPublishPolicy | כן | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
site_ids | string[] | כן | — |
recipe_id | string | לא | — |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 422