認証
ベアラー トークンとして API キーを送信します。このエンドポイントでは仕様に特定の権限が記載されていないため、キーに必要な最小限の権限を付与し、推測するのではなくレスポンスを確認してください。
このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。
試してみる
アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。
curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブ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