Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X POST https://api.zinndigital.com/v1/content/run-schedules \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
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.
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
brief | string | Nee | — |
site_ids | string[] | Nee | — |
anchors | ContentRunAnchor[] | Nee | — |
category | string | Nee | — |
publish_policy | ContentRunPublishPolicy | Nee | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
interval_hours | integer | Nee | — |
enabled | boolean | Nee | — |
recipe_id | string | Nee | — |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | string | Ja | — |
enabled | boolean | Ja | — |
interval_hours | integer | Ja | — |
next_run_at | string | Ja | — |
last_run_at | string | Nee | — |
last_run_id | string | Nee | — |
brief | string | Ja | — |
category | string | Nee | — |
publish_policy | ContentRunPublishPolicy | Ja | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
site_ids | string[] | Ja | — |
recipe_id | string | Nee | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 422