ការផ្ទៀងផ្ទាត់ភាពត្រឹមត្រូវ
បញ្ជូនសោ 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