ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Tüm ai uç noktaları

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar links.edit iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Kurum kimliğinizin yazılacağı yer

Bu uç nokta, JSON gövdesinde bir alan olarak org_id alır.

Kuruluş kimliğiniz (id), kontrol panelinizdeki API anahtarları ekranında, anahtarın hemen yanında yer alır. Yaptığınız her çağrıda aynı kimlik kullanılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

curl -X PATCH https://api.zinndigital.com/v1/ai/recipes/{recipeId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string> }'

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

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`.

Parametreler

AdTürZorunluNe olduğu
recipeId (path)UuidEvet

İstek gövdesi

AdTürZorunluNe olduğu
namestringEvet
is_enabledbooleanHayır
briefstringHayır
tonestringHayır
word_countintegerHayır
languagestringHayır
posts_per_runintegerHayır
providerstringHayır
model_idstringHayır
model_familystringHayır
anchorsAiAnchor[]Hayır
anchor_policystring<none, every_post, rotate>Hayır
link_set_idstringHayırThe 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>Hayır
cadence_hour_utcintegerHayır
cadence_dowintegerHayır
cadence_domintegerHayır
target_kindstring<none, sites, site_group, cms_targets>Hayır
target_sitesstring[]Hayır
target_site_group_idobjectHayır
target_cms_target_idsstring[]Hayır
target_categorystringHayır
requires_capabilitiesstring[]Hayır
capability_policystring<refuse, degrade, ask>Hayır
image_providerstringHayır
image_modelstringHayır
featured_imagebooleanHayır
inline_image_countintegerHayır
inline_placementstring<after_intro, between_sections, end>Hayır
image_stylestringHayır
publish_modestring<draft, schedule, publish>Hayır
schedule_offset_hoursintegerHayır
schedule_stagger_minutesintegerHayır
org_idUuidHayırUUIDv7 identifier — sortable by creation time (docs/02 §8).

Yanıt

AdTürZorunluNe olduğu
idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringEvet
is_enabledbooleanEvet
briefstringHayır
tonestringHayır
word_countintegerHayır
languagestringHayırBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerHayır⛔ 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.
providerstringHayırBlank = whatever the funding route resolves to.
model_idstringHayırBlank = the newest verified model in the family.
model_familystringHayır
anchorsAiAnchor[]Hayır
anchor_policystring<none, every_post, rotate>Hayır
link_set_idstringHayırThe 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>Evet
cadence_hour_utcintegerHayır
cadence_dowintegerHayır0 = Monday.
cadence_domintegerHayır⛔ 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_atobjectHayır
last_run_atobjectHayır
target_kindstring<none, sites, site_group, cms_targets>Hayır
target_sitesstring[]Hayır
target_site_group_idobjectHayır
target_cms_target_idsstring[]Hayır
target_categorystringHayır
requires_capabilitiesstring[]HayırCapability 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>HayırWhat 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_providerstringHayır
image_modelstringHayır
featured_imagebooleanHayır
inline_image_countintegerHayır
inline_placementstring<after_intro, between_sections, end>Hayır
image_stylestringHayır
publish_modestring<draft, schedule, publish>Evet⚖️ 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_hoursintegerHayır
schedule_stagger_minutesintegerHayırMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]HayırProviders 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_atstringEvet
updated_atstringHayır

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404 · 422 · 429