Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението 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, за да можете да видите действителния отговор. Отворете този крайpoint в 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 handled…
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…
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Не

Грешки, които този крайpoint може да върне

401 · 403 · 404 · 422 · 429