ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Բոլոր ai վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա links.edit թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:

Որտեղ տեղադրվում է ձեր կազմակերպության ID-ն

Այս վերջնակետը JSON մարմնում որպես դաշտ վերցնում է org_id-ը։

Ձեր կազմակերպության ID-ն գտնվում է Ձեր ղեկավարման վահանակի API բանալիների էկրանին՝ բուն բանալու կողքին: Այն նույն ID-ն է Ձեր կատարած յուրաքանչյուր հարցման մեջ:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

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 վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ 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Այո

Հարցման մարմին

ԱնունՏեսակՊահանջվում էԻնչ է դա
namestringԱյո
is_enabledbooleanՈչ
briefstringՈչ
tonestringՈչ
word_countintegerՈչ
languagestringՈչ
posts_per_runintegerՈչ
providerstringՈչ
model_idstringՈչ
model_familystringՈչ
anchorsAiAnchor[]Ոչ
anchor_policystring<none, every_post, rotate>Ոչ
link_set_idstringՈչ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…
cadencestring<manual, daily, weekly, monthly>Ոչ
cadence_hour_utcintegerՈչ
cadence_dowintegerՈչ
cadence_domintegerՈչ
target_kindstring<none, sites, site_group, cms_targets>Ոչ
target_sitesstring[]Ոչ
target_site_group_idobjectՈչ
target_cms_target_idsstring[]Ոչ
target_categorystringՈչ
requires_capabilitiesstring[]Ոչ
capability_policystring<refuse, degrade, ask>Ոչ
image_providerstringՈչ
image_modelstringՈչ
featured_imagebooleanՈչ
inline_image_countintegerՈչ
inline_placementstring<after_intro, between_sections, end>Ոչ
image_stylestringՈչ
publish_modestring<draft, schedule, publish>Ոչ
schedule_offset_hoursintegerՈչ
schedule_stagger_minutesintegerՈչ
org_idUuidՈչUUIDv7 identifier — sortable by creation time (docs/02 §8).

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
idUuidԱյոUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringԱյո
is_enabledbooleanԱյո
briefstringՈչ
tonestringՈչ
word_countintegerՈչ
languagestringՈչBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerՈչ⛔ 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.
providerstringՈչBlank = whatever the funding route resolves to.
model_idstringՈչBlank = the newest verified model in the family.
model_familystringՈչ
anchorsAiAnchor[]Ոչ
anchor_policystring<none, every_post, rotate>Ոչ
link_set_idstringՈչ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…
cadencestring<manual, daily, weekly, monthly>Այո
cadence_hour_utcintegerՈչ
cadence_dowintegerՈչ0 = Monday.
cadence_domintegerՈչ⛔ 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_atobjectՈչ
last_run_atobjectՈչ
target_kindstring<none, sites, site_group, cms_targets>Ոչ
target_sitesstring[]Ոչ
target_site_group_idobjectՈչ
target_cms_target_idsstring[]Ոչ
target_categorystringՈչ
requires_capabilitiesstring[]Ոչ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_policystring<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_providerstringՈչ
image_modelstringՈչ
featured_imagebooleanՈչ
inline_image_countintegerՈչ
inline_placementstring<after_intro, between_sections, end>Ոչ
image_stylestringՈչ
publish_modestring<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_hoursintegerՈչ
schedule_stagger_minutesintegerՈչMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]Ոչ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_atstringԱյո
updated_atstringՈչ

Այս վերջնակետի կողմից վերադարձվող սխալները

401 · 403 · 404 · 422 · 429