links

POST /v1/content/run-schedules

Post to these sites every N hours.

Tous les points de terminaison links

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

NomTypeObligatoireQu'est-ce que c'est
briefstringNon
site_idsstring[]Non
anchorsContentRunAnchor[]Non
categorystringNon
publish_policyContentRunPublishPolicyNonHow far a run may go on its own. `draft_only` is the default and puts nothing live.
interval_hoursintegerNon
enabledbooleanNon
recipe_idstringNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
idstringOui
enabledbooleanOui
interval_hoursintegerOui
next_run_atstringOui
last_run_atstringNon
last_run_idstringNon
briefstringOui
categorystringNon
publish_policyContentRunPublishPolicyOuiHow far a run may go on its own. `draft_only` is the default and puts nothing live.
site_idsstring[]Oui
recipe_idstringNon

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 422