Uthibitishaji
Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya links.edit; ufunguo usio nayo unakataliwa kwa 403, si 404.
Mahali ambapo kitambulisho cha shirika lako huwekwa
Sehemu hii ya mwisho inachukua org_id kama uwanja katika mwili wa JSON.
Kitambulisho cha shirika lako kipo kwenye skrini ya funguo za API katika dashibodi yako, kando ya ufunguo wenyewe. Ni kitambulisho kile kile katika kila ombi unalofanya.
Jaribu
Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.
curl -X PATCH https://api.zinndigital.com/v1/ai/recipes/{recipeId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API
Maelezo
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`.
Vigezo
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
recipeId (path) | Uuid | Ndiyo | — |
Mwili wa ombi
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
name | string | Ndiyo | — |
is_enabled | boolean | Hapana | — |
brief | string | Hapana | — |
tone | string | Hapana | — |
word_count | integer | Hapana | — |
language | string | Hapana | — |
posts_per_run | integer | Hapana | — |
provider | string | Hapana | — |
model_id | string | Hapana | — |
model_family | string | Hapana | — |
anchors | AiAnchor[] | Hapana | — |
anchor_policy | string<none, every_post, rotate> | Hapana | — |
link_set_id | string | Hapana | 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> | Hapana | — |
cadence_hour_utc | integer | Hapana | — |
cadence_dow | integer | Hapana | — |
cadence_dom | integer | Hapana | — |
target_kind | string<none, sites, site_group, cms_targets> | Hapana | — |
target_sites | string[] | Hapana | — |
target_site_group_id | object | Hapana | — |
target_cms_target_ids | string[] | Hapana | — |
target_category | string | Hapana | — |
requires_capabilities | string[] | Hapana | — |
capability_policy | string<refuse, degrade, ask> | Hapana | — |
image_provider | string | Hapana | — |
image_model | string | Hapana | — |
featured_image | boolean | Hapana | — |
inline_image_count | integer | Hapana | — |
inline_placement | string<after_intro, between_sections, end> | Hapana | — |
image_style | string | Hapana | — |
publish_mode | string<draft, schedule, publish> | Hapana | — |
schedule_offset_hours | integer | Hapana | — |
schedule_stagger_minutes | integer | Hapana | — |
org_id | Uuid | Hapana | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
Majibu
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
id | Uuid | Ndiyo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Ndiyo | — |
is_enabled | boolean | Ndiyo | — |
brief | string | Hapana | — |
tone | string | Hapana | — |
word_count | integer | Hapana | — |
language | string | Hapana | BCP-47, or empty for "the language the brief is written in". |
posts_per_run | integer | Hapana | ⛔ 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 | Hapana | Blank = whatever the funding route resolves to. |
model_id | string | Hapana | Blank = the newest verified model in the family. |
model_family | string | Hapana | — |
anchors | AiAnchor[] | Hapana | — |
anchor_policy | string<none, every_post, rotate> | Hapana | — |
link_set_id | string | Hapana | 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> | Ndiyo | — |
cadence_hour_utc | integer | Hapana | — |
cadence_dow | integer | Hapana | 0 = Monday. |
cadence_dom | integer | Hapana | ⛔ 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 | Hapana | — |
last_run_at | object | Hapana | — |
target_kind | string<none, sites, site_group, cms_targets> | Hapana | — |
target_sites | string[] | Hapana | — |
target_site_group_id | object | Hapana | — |
target_cms_target_ids | string[] | Hapana | — |
target_category | string | Hapana | — |
requires_capabilities | string[] | Hapana | 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> | Hapana | 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 | Hapana | — |
image_model | string | Hapana | — |
featured_image | boolean | Hapana | — |
inline_image_count | integer | Hapana | — |
inline_placement | string<after_intro, between_sections, end> | Hapana | — |
image_style | string | Hapana | — |
publish_mode | string<draft, schedule, publish> | Ndiyo | ⚖️ 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 | Hapana | — |
schedule_stagger_minutes | integer | Hapana | 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[] | Hapana | 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 | Ndiyo | — |
updated_at | string | Hapana | — |
Hitilafu ambazo mwisho huu unaweza kurudisha
401 · 403 · 404 · 422 · 429