Authenticatie
Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie links.edit beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.
Waar je organisatie-id komt te staan
Dit eindpunt verwacht org_id als een veld in de JSON-body.
Uw organisatie-id staat op het scherm met API-sleutels in uw dashboard, naast de sleutel zelf. Dit is in elke aanroep die u doet dezelfde id.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X PATCH https://api.zinndigital.com/v1/ai/recipes/{recipeId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'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
Partial update. The schedule is recomputed on every write rather than by a nightly job — a recipe saved with a cadence and no next run is a recipe that never runs and shows no error anywhere. Requires `links.edit`.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
recipeId (path) | Uuid | Ja | — |
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
name | string | Ja | — |
is_enabled | boolean | Nee | — |
brief | string | Nee | — |
tone | string | Nee | — |
word_count | integer | Nee | — |
language | string | Nee | — |
posts_per_run | integer | Nee | — |
provider | string | Nee | — |
model_id | string | Nee | — |
model_family | string | Nee | — |
anchors | AiAnchor[] | Nee | — |
anchor_policy | string<none, every_post, rotate> | Nee | — |
link_set_id | string | Nee | The reusable link set this recipe draws its links from, or `null` to use the recipe's own `anchors`. When set it **replaces** `anchors` rather than adding to them — two sources… |
cadence | string<manual, daily, weekly, monthly> | Nee | — |
cadence_hour_utc | integer | Nee | — |
cadence_dow | integer | Nee | — |
cadence_dom | integer | Nee | — |
target_kind | string<none, sites, site_group, cms_targets> | Nee | — |
target_sites | string[] | Nee | — |
target_site_group_id | object | Nee | — |
target_cms_target_ids | string[] | Nee | — |
target_category | string | Nee | — |
requires_capabilities | string[] | Nee | — |
capability_policy | string<refuse, degrade, ask> | Nee | — |
image_provider | string | Nee | — |
image_model | string | Nee | — |
featured_image | boolean | Nee | — |
inline_image_count | integer | Nee | — |
inline_placement | string<after_intro, between_sections, end> | Nee | — |
image_style | string | Nee | — |
publish_mode | string<draft, schedule, publish> | Nee | — |
schedule_offset_hours | integer | Nee | — |
schedule_stagger_minutes | integer | Nee | — |
org_id | Uuid | Nee | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Ja | — |
is_enabled | boolean | Ja | — |
brief | string | Nee | — |
tone | string | Nee | — |
word_count | integer | Nee | — |
language | string | Nee | BCP-47, or empty for "the language the brief is written in". |
posts_per_run | integer | Nee | ⛔ Capped at 10. Two hundred articles from one brief are two hundred near-identical articles, which is a **footprint** — the exact thing the Footprint-Free line is sold to avoid. |
provider | string | Nee | Blank = whatever the funding route resolves to. |
model_id | string | Nee | Blank = the newest verified model in the family. |
model_family | string | Nee | — |
anchors | AiAnchor[] | Nee | — |
anchor_policy | string<none, every_post, rotate> | Nee | — |
link_set_id | string | Nee | The reusable link set this recipe draws its links from, or `null` to use the recipe's own `anchors`. When set it **replaces** `anchors` rather than adding to them — two sources… |
cadence | string<manual, daily, weekly, monthly> | Ja | — |
cadence_hour_utc | integer | Nee | — |
cadence_dow | integer | Nee | 0 = Monday. |
cadence_dom | integer | Nee | ⛔ Never 29-31: a monthly recipe set to the 31st would skip February silently, and a schedule that stops without an error is the failure this feature prevents. |
next_run_at | object | Nee | — |
last_run_at | object | Nee | — |
target_kind | string<none, sites, site_group, cms_targets> | Nee | — |
target_sites | string[] | Nee | — |
target_site_group_id | object | Nee | — |
target_cms_target_ids | string[] | Nee | — |
target_category | string | Nee | — |
requires_capabilities | string[] | Nee | Capability ids the target must support, e.g. `cms_target:featured_image`. Enforced on every run: each site's capabilities are read from its CMS target and any shortfall is handl… |
capability_policy | string<refuse, degrade, ask> | Nee | What to do when a target cannot do something the recipe requires. Default `refuse` — silently dropping a requested field is the failure this exists to stop. `refuse` skips that… |
image_provider | string | Nee | — |
image_model | string | Nee | — |
featured_image | boolean | Nee | — |
inline_image_count | integer | Nee | — |
inline_placement | string<after_intro, between_sections, end> | Nee | — |
image_style | string | Nee | — |
publish_mode | string<draft, schedule, publish> | Ja | ⚖️ Owner ruling 2026-08-20: a **per-recipe** switch defaulting to `draft`. `draft` writes into the library and schedules nothing; `schedule` queues placements the customer can s… |
schedule_offset_hours | integer | Nee | — |
schedule_stagger_minutes | integer | Nee | Minutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint. |
blocking_providers | string[] | Nee | Providers this recipe needs a working key for and does not have. Empty means it can run now. ⚖️ A recipe naming no provider is never blocked — credits are the default route and… |
created_at | string | Ja | — |
updated_at | string | Nee | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404 · 422 · 429