Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл links.edit; ключ без нього відхиляється з кодом 403, а не 404.
Де вказується ідентифікатор вашої організації
Цей ендпоінт приймає org_id як поле в тілі JSON.
Ідентифікатор вашої організації знаходиться на екрані API-ключів у вашій панелі керування, поруч із самим ключем. Це той самий ідентифікатор у кожному вашому запиті.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X PATCH https://api.zinndigital.com/v1/ai/recipes/{recipeId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API
Деталі
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`.
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
recipeId (path) | Uuid | Так | — |
Тіло запиту
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
name | string | Так | — |
is_enabled | boolean | Ні | — |
brief | string | Ні | — |
tone | string | Ні | — |
word_count | integer | Ні | — |
language | string | Ні | — |
posts_per_run | integer | Ні | — |
provider | string | Ні | — |
model_id | string | Ні | — |
model_family | string | Ні | — |
anchors | AiAnchor[] | Ні | — |
anchor_policy | string<none, every_post, rotate> | Ні | — |
link_set_id | string | Ні | 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> | Ні | — |
cadence_hour_utc | integer | Ні | — |
cadence_dow | integer | Ні | — |
cadence_dom | integer | Ні | — |
target_kind | string<none, sites, site_group, cms_targets> | Ні | — |
target_sites | string[] | Ні | — |
target_site_group_id | object | Ні | — |
target_cms_target_ids | string[] | Ні | — |
target_category | string | Ні | — |
requires_capabilities | string[] | Ні | — |
capability_policy | string<refuse, degrade, ask> | Ні | — |
image_provider | string | Ні | — |
image_model | string | Ні | — |
featured_image | boolean | Ні | — |
inline_image_count | integer | Ні | — |
inline_placement | string<after_intro, between_sections, end> | Ні | — |
image_style | string | Ні | — |
publish_mode | string<draft, schedule, publish> | Ні | — |
schedule_offset_hours | integer | Ні | — |
schedule_stagger_minutes | integer | Ні | — |
org_id | Uuid | Ні | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Так | — |
is_enabled | boolean | Так | — |
brief | string | Ні | — |
tone | string | Ні | — |
word_count | integer | Ні | — |
language | string | Ні | BCP-47, or empty for "the language the brief is written in". |
posts_per_run | integer | Ні | ⛔ 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 | Ні | Blank = whatever the funding route resolves to. |
model_id | string | Ні | Blank = the newest verified model in the family. |
model_family | string | Ні | — |
anchors | AiAnchor[] | Ні | — |
anchor_policy | string<none, every_post, rotate> | Ні | — |
link_set_id | string | Ні | 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> | Так | — |
cadence_hour_utc | integer | Ні | — |
cadence_dow | integer | Ні | 0 = Monday. |
cadence_dom | integer | Ні | ⛔ 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 | Ні | — |
last_run_at | object | Ні | — |
target_kind | string<none, sites, site_group, cms_targets> | Ні | — |
target_sites | string[] | Ні | — |
target_site_group_id | object | Ні | — |
target_cms_target_ids | string[] | Ні | — |
target_category | string | Ні | — |
requires_capabilities | string[] | Ні | 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> | Ні | 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 | Ні | — |
image_model | string | Ні | — |
featured_image | boolean | Ні | — |
inline_image_count | integer | Ні | — |
inline_placement | string<after_intro, between_sections, end> | Ні | — |
image_style | string | Ні | — |
publish_mode | string<draft, schedule, publish> | Так | ⚖️ 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 | Ні | — |
schedule_stagger_minutes | integer | Ні | 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[] | Ні | 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 | Так | — |
updated_at | string | Ні | — |
Помилки, які може повертати ця кінцева точка
401 · 403 · 404 · 422 · 429