links
POST /v1/content/run-schedules
Post to these sites every N hours.
Authentification
Envoyez une clé d'API en tant que jeton du porteur (bearer token). Cet endpoint n'indique pas de permission spécifique dans la spécification, attribuez donc à votre clé le minimum requis et vérifiez la réponse plutôt que de faire des suppositions.
Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.
Essayer
Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.
curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API
Détails
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.
Corps de la requête
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
brief | string | Non | — |
site_ids | string[] | Non | — |
anchors | ContentRunAnchor[] | Non | — |
category | string | Non | — |
publish_policy | ContentRunPublishPolicy | Non | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
interval_hours | integer | Non | — |
enabled | boolean | Non | — |
recipe_id | string | Non | — |
Réponse
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
id | string | Oui | — |
enabled | boolean | Oui | — |
interval_hours | integer | Oui | — |
next_run_at | string | Oui | — |
last_run_at | string | Non | — |
last_run_id | string | Non | — |
brief | string | Oui | — |
category | string | Non | — |
publish_policy | ContentRunPublishPolicy | Oui | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
site_ids | string[] | Oui | — |
recipe_id | string | Non | — |
Erreurs que cet point de terminaison peut renvoyer
401 · 403 · 422