Санҷиши ҳаққоният
Kaliti API-ро ҳамчун рамзи доранда (bearer token) фиристед. Калит бояд дорои иҷозати links.edit бошад; калиди бидуни он бо хатои 403 рад карда мешавад, на 404.
Ҷое, ки рақами мушаххаси ташкилоти шумо ҷойгир аст
Ин нуқтаи поёнӣ org_id -ро ҳамчун майдон дар бадани JSON мегирад.
Rakami муайянкунандаи ташкилоти шумо дар экрани калидҳои API дар панели идоракунии шумо, дар паҳлӯи худи калид ҷойгир аст. Ин як раками муайянкунанда дар ҳар یک дархосте, ки шумо иҷро мекунед, якхела аст.
Санҷидан
Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.
curl -X PATCH https://api.zinndigital.com/v1/ai/recipes/{recipeId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'Воarid шудаед? Консоли 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