ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Barcha ai yakuniy nuqtalari

Autentifikatsiya

API kalitini bearer token sifatida yuboring. Kalit links.edit ruxsatiga ega boʻlishi shart; ruxsatsiz kalit 404 emas, balki 403 xatosi bilan rad etiladi.

Tashkilotingiz identifikatori kiritiladigan joy

Ushbu so'rov JSON tanasida org_id ni maydon sifatida qabul qiladi.

Tashkilotingiz identifikatori boshqaruv panelingizdagi API kalitlari ekranida, kalitning o'z yonida joylashgan. Bu siz amalga oshiradigan har bir so'rovda bir xil identifikator hisoblanadi.

Sinab ko'rish

Qavslardagi har qanday narsani o'z qiymatlaringiz bilan, kalit pleysxolderini эsa boshqaruv panelingizdagi kalit bilan almashtiring.

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

Tizimga kirganmisiz? Boshqaruv panelingizdagi API konsoli haqiqiy tashkilot ID raqamingiz va shaxsiy kalitingizni avtomatik to'ldiradi hamda haqiqiy javobni ko'rishingiz uchun so'rovni jonli API orqali bajaradi. Ushbu yakuniy nuqtani API konsolida oching

Tafsilotlar

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

Parametrlar

NomiTuriMajburiyNima bu
recipeId (path)UuidHa

Soʻrov tanasi

NomiTuriMajburiyNima bu
namestringHa
is_enabledbooleanYo'q
briefstringYo'q
tonestringYo'q
word_countintegerYo'q
languagestringYo'q
posts_per_runintegerYo'q
providerstringYo'q
model_idstringYo'q
model_familystringYo'q
anchorsAiAnchor[]Yo'q
anchor_policystring<none, every_post, rotate>Yo'q
link_set_idstringYo'qThe 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>Yo'q
cadence_hour_utcintegerYo'q
cadence_dowintegerYo'q
cadence_domintegerYo'q
target_kindstring<none, sites, site_group, cms_targets>Yo'q
target_sitesstring[]Yo'q
target_site_group_idobjectYo'q
target_cms_target_idsstring[]Yo'q
target_categorystringYo'q
requires_capabilitiesstring[]Yo'q
capability_policystring<refuse, degrade, ask>Yo'q
image_providerstringYo'q
image_modelstringYo'q
featured_imagebooleanYo'q
inline_image_countintegerYo'q
inline_placementstring<after_intro, between_sections, end>Yo'q
image_stylestringYo'q
publish_modestring<draft, schedule, publish>Yo'q
schedule_offset_hoursintegerYo'q
schedule_stagger_minutesintegerYo'q
org_idUuidYo'qUUIDv7 identifier — sortable by creation time (docs/02 §8).

Javob

NomiTuriMajburiyNima bu
idUuidHaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringHa
is_enabledbooleanHa
briefstringYo'q
tonestringYo'q
word_countintegerYo'q
languagestringYo'qBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerYo'q⛔ 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.
providerstringYo'qBlank = whatever the funding route resolves to.
model_idstringYo'qBlank = the newest verified model in the family.
model_familystringYo'q
anchorsAiAnchor[]Yo'q
anchor_policystring<none, every_post, rotate>Yo'q
link_set_idstringYo'qThe 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>Ha
cadence_hour_utcintegerYo'q
cadence_dowintegerYo'q0 = Monday.
cadence_domintegerYo'q⛔ 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_atobjectYo'q
last_run_atobjectYo'q
target_kindstring<none, sites, site_group, cms_targets>Yo'q
target_sitesstring[]Yo'q
target_site_group_idobjectYo'q
target_cms_target_idsstring[]Yo'q
target_categorystringYo'q
requires_capabilitiesstring[]Yo'qCapability 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>Yo'qWhat 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_providerstringYo'q
image_modelstringYo'q
featured_imagebooleanYo'q
inline_image_countintegerYo'q
inline_placementstring<after_intro, between_sections, end>Yo'q
image_stylestringYo'q
publish_modestring<draft, schedule, publish>Ha⚖️ 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_hoursintegerYo'q
schedule_stagger_minutesintegerYo'qMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]Yo'qProviders 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_atstringHa
updated_atstringYo'q

Ushbu yakuniy nuqta qaytarishi mumkin bo'lgan xatolar

401 · 403 · 404 · 422 · 429