Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na links.edit; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Kung saan mapupunta ang id ng iyong organisasyon
Ang endpoint na ito ay kumukuha ng org_id bilang isang field sa JSON body.
Ang id ng iyong organisasyon ay nasa screen ng mga API key sa iyong dashboard, sa tabi mismo ng key. Ito ang parehong id sa bawat tawag na gagawin mo.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong 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> }'Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
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`.
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
recipeId (path) | Uuid | Oo | — |
Katawan ng kahilingan
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
name | string | Oo | — |
is_enabled | boolean | Hindi | — |
brief | string | Hindi | — |
tone | string | Hindi | — |
word_count | integer | Hindi | — |
language | string | Hindi | — |
posts_per_run | integer | Hindi | — |
provider | string | Hindi | — |
model_id | string | Hindi | — |
model_family | string | Hindi | — |
anchors | AiAnchor[] | Hindi | — |
anchor_policy | string<none, every_post, rotate> | Hindi | — |
link_set_id | string | Hindi | 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> | Hindi | — |
cadence_hour_utc | integer | Hindi | — |
cadence_dow | integer | Hindi | — |
cadence_dom | integer | Hindi | — |
target_kind | string<none, sites, site_group, cms_targets> | Hindi | — |
target_sites | string[] | Hindi | — |
target_site_group_id | object | Hindi | — |
target_cms_target_ids | string[] | Hindi | — |
target_category | string | Hindi | — |
requires_capabilities | string[] | Hindi | — |
capability_policy | string<refuse, degrade, ask> | Hindi | — |
image_provider | string | Hindi | — |
image_model | string | Hindi | — |
featured_image | boolean | Hindi | — |
inline_image_count | integer | Hindi | — |
inline_placement | string<after_intro, between_sections, end> | Hindi | — |
image_style | string | Hindi | — |
publish_mode | string<draft, schedule, publish> | Hindi | — |
schedule_offset_hours | integer | Hindi | — |
schedule_stagger_minutes | integer | Hindi | — |
org_id | Uuid | Hindi | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Oo | — |
is_enabled | boolean | Oo | — |
brief | string | Hindi | — |
tone | string | Hindi | — |
word_count | integer | Hindi | — |
language | string | Hindi | BCP-47, or empty for "the language the brief is written in". |
posts_per_run | integer | Hindi | ⛔ 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 | Hindi | Blank = whatever the funding route resolves to. |
model_id | string | Hindi | Blank = the newest verified model in the family. |
model_family | string | Hindi | — |
anchors | AiAnchor[] | Hindi | — |
anchor_policy | string<none, every_post, rotate> | Hindi | — |
link_set_id | string | Hindi | 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> | Oo | — |
cadence_hour_utc | integer | Hindi | — |
cadence_dow | integer | Hindi | 0 = Monday. |
cadence_dom | integer | Hindi | ⛔ 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 | Hindi | — |
last_run_at | object | Hindi | — |
target_kind | string<none, sites, site_group, cms_targets> | Hindi | — |
target_sites | string[] | Hindi | — |
target_site_group_id | object | Hindi | — |
target_cms_target_ids | string[] | Hindi | — |
target_category | string | Hindi | — |
requires_capabilities | string[] | Hindi | 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> | Hindi | 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 | Hindi | — |
image_model | string | Hindi | — |
featured_image | boolean | Hindi | — |
inline_image_count | integer | Hindi | — |
inline_placement | string<after_intro, between_sections, end> | Hindi | — |
image_style | string | Hindi | — |
publish_mode | string<draft, schedule, publish> | Oo | ⚖️ 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 | Hindi | — |
schedule_stagger_minutes | integer | Hindi | 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[] | Hindi | 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 | Oo | — |
updated_at | string | Hindi | — |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 404 · 422 · 429