ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Ҳамаи нуқтаҳои ниҳоии ai

Санҷиши ҳаққоният

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Бале

Ҷисми дархост

НомНамудТалаб карда мешавадИн чӣ аст
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