ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Wszystkie punkty końcowe ai

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie links.edit; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Miejsce na identyfikator organizacji

Ten punkt końcowy przyjmuje org_id jako pole w treści JSON.

Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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

Parametry

NazwaTypWymaganeCo to jest
recipeId (path)UuidTak

Treść żądania

NazwaTypWymaganeCo to jest
namestringTak
is_enabledbooleanNie
briefstringNie
tonestringNie
word_countintegerNie
languagestringNie
posts_per_runintegerNie
providerstringNie
model_idstringNie
model_familystringNie
anchorsAiAnchor[]Nie
anchor_policystring<none, every_post, rotate>Nie
link_set_idstringNieThe 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>Nie
cadence_hour_utcintegerNie
cadence_dowintegerNie
cadence_domintegerNie
target_kindstring<none, sites, site_group, cms_targets>Nie
target_sitesstring[]Nie
target_site_group_idobjectNie
target_cms_target_idsstring[]Nie
target_categorystringNie
requires_capabilitiesstring[]Nie
capability_policystring<refuse, degrade, ask>Nie
image_providerstringNie
image_modelstringNie
featured_imagebooleanNie
inline_image_countintegerNie
inline_placementstring<after_intro, between_sections, end>Nie
image_stylestringNie
publish_modestring<draft, schedule, publish>Nie
schedule_offset_hoursintegerNie
schedule_stagger_minutesintegerNie
org_idUuidNieUUIDv7 identifier — sortable by creation time (docs/02 §8).

Odpowiedź

NazwaTypWymaganeCo to jest
idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringTak
is_enabledbooleanTak
briefstringNie
tonestringNie
word_countintegerNie
languagestringNieBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerNie⛔ 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.
providerstringNieBlank = whatever the funding route resolves to.
model_idstringNieBlank = the newest verified model in the family.
model_familystringNie
anchorsAiAnchor[]Nie
anchor_policystring<none, every_post, rotate>Nie
link_set_idstringNieThe 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>Tak
cadence_hour_utcintegerNie
cadence_dowintegerNie0 = Monday.
cadence_domintegerNie⛔ 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_atobjectNie
last_run_atobjectNie
target_kindstring<none, sites, site_group, cms_targets>Nie
target_sitesstring[]Nie
target_site_group_idobjectNie
target_cms_target_idsstring[]Nie
target_categorystringNie
requires_capabilitiesstring[]NieCapability 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>NieWhat 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_providerstringNie
image_modelstringNie
featured_imagebooleanNie
inline_image_countintegerNie
inline_placementstring<after_intro, between_sections, end>Nie
image_stylestringNie
publish_modestring<draft, schedule, publish>Tak⚖️ 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_hoursintegerNie
schedule_stagger_minutesintegerNieMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]NieProviders 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_atstringTak
updated_atstringNie

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422 · 429