ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Bütün ai nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Açar links.edit icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Təşkilatınızın identifikatorunun yerləşdiyi yer

Bu son nöqtə JSON gövdəsində sahə kimi org_id qəbul edir.

Təşkilatınızın identifikatoru idarə panelinizdəki API açarları ekranında, açarın özünün yanında yerləşir. Bu, etdiyiniz hər bir sorğuda eyni identifikatordur.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

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

Parametrlər

AdTipTələb olunurNədir
recipeId (path)UuidBəli

Sorğu gövdəsi

AdTipTələb olunurNədir
namestringBəli
is_enabledbooleanXeyr
briefstringXeyr
tonestringXeyr
word_countintegerXeyr
languagestringXeyr
posts_per_runintegerXeyr
providerstringXeyr
model_idstringXeyr
model_familystringXeyr
anchorsAiAnchor[]Xeyr
anchor_policystring<none, every_post, rotate>Xeyr
link_set_idstringXeyrThe 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>Xeyr
cadence_hour_utcintegerXeyr
cadence_dowintegerXeyr
cadence_domintegerXeyr
target_kindstring<none, sites, site_group, cms_targets>Xeyr
target_sitesstring[]Xeyr
target_site_group_idobjectXeyr
target_cms_target_idsstring[]Xeyr
target_categorystringXeyr
requires_capabilitiesstring[]Xeyr
capability_policystring<refuse, degrade, ask>Xeyr
image_providerstringXeyr
image_modelstringXeyr
featured_imagebooleanXeyr
inline_image_countintegerXeyr
inline_placementstring<after_intro, between_sections, end>Xeyr
image_stylestringXeyr
publish_modestring<draft, schedule, publish>Xeyr
schedule_offset_hoursintegerXeyr
schedule_stagger_minutesintegerXeyr
org_idUuidXeyrUUIDv7 identifier — sortable by creation time (docs/02 §8).

Cavab

AdTipTələb olunurNədir
idUuidBəliUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringBəli
is_enabledbooleanBəli
briefstringXeyr
tonestringXeyr
word_countintegerXeyr
languagestringXeyrBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerXeyr⛔ 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.
providerstringXeyrBlank = whatever the funding route resolves to.
model_idstringXeyrBlank = the newest verified model in the family.
model_familystringXeyr
anchorsAiAnchor[]Xeyr
anchor_policystring<none, every_post, rotate>Xeyr
link_set_idstringXeyrThe 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>Bəli
cadence_hour_utcintegerXeyr
cadence_dowintegerXeyr0 = Monday.
cadence_domintegerXeyr⛔ 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_atobjectXeyr
last_run_atobjectXeyr
target_kindstring<none, sites, site_group, cms_targets>Xeyr
target_sitesstring[]Xeyr
target_site_group_idobjectXeyr
target_cms_target_idsstring[]Xeyr
target_categorystringXeyr
requires_capabilitiesstring[]XeyrCapability 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>XeyrWhat 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_providerstringXeyr
image_modelstringXeyr
featured_imagebooleanXeyr
inline_image_countintegerXeyr
inline_placementstring<after_intro, between_sections, end>Xeyr
image_stylestringXeyr
publish_modestring<draft, schedule, publish>Bəli⚖️ 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_hoursintegerXeyr
schedule_stagger_minutesintegerXeyrMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]XeyrProviders 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_atstringBəli
updated_atstringXeyr

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 422 · 429