ai

PATCH /v1/ai/recipes/{recipeId}

Edit an AI posting recipe.

Todos os endpoints de ai

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão links.edit; uma chave sem ela é recusada com 403, e não 404.

Onde vai o ID da sua organização

Este endpoint aceita org_id como um campo no corpo JSON.

O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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

Parâmetros

NomeTipoObrigatórioO que é
recipeId (path)UuidSim

Corpo da requisição

NomeTipoObrigatórioO que é
namestringSim
is_enabledbooleanNão
briefstringNão
tonestringNão
word_countintegerNão
languagestringNão
posts_per_runintegerNão
providerstringNão
model_idstringNão
model_familystringNão
anchorsAiAnchor[]Não
anchor_policystring<none, every_post, rotate>Não
link_set_idstringNãoThe 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>Não
cadence_hour_utcintegerNão
cadence_dowintegerNão
cadence_domintegerNão
target_kindstring<none, sites, site_group, cms_targets>Não
target_sitesstring[]Não
target_site_group_idobjectNão
target_cms_target_idsstring[]Não
target_categorystringNão
requires_capabilitiesstring[]Não
capability_policystring<refuse, degrade, ask>Não
image_providerstringNão
image_modelstringNão
featured_imagebooleanNão
inline_image_countintegerNão
inline_placementstring<after_intro, between_sections, end>Não
image_stylestringNão
publish_modestring<draft, schedule, publish>Não
schedule_offset_hoursintegerNão
schedule_stagger_minutesintegerNão
org_idUuidNãoUUIDv7 identifier — sortable by creation time (docs/02 §8).

Resposta

NomeTipoObrigatórioO que é
idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringSim
is_enabledbooleanSim
briefstringNão
tonestringNão
word_countintegerNão
languagestringNãoBCP-47, or empty for "the language the brief is written in".
posts_per_runintegerNão⛔ 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.
providerstringNãoBlank = whatever the funding route resolves to.
model_idstringNãoBlank = the newest verified model in the family.
model_familystringNão
anchorsAiAnchor[]Não
anchor_policystring<none, every_post, rotate>Não
link_set_idstringNãoThe 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>Sim
cadence_hour_utcintegerNão
cadence_dowintegerNão0 = Monday.
cadence_domintegerNão⛔ 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_atobjectNão
last_run_atobjectNão
target_kindstring<none, sites, site_group, cms_targets>Não
target_sitesstring[]Não
target_site_group_idobjectNão
target_cms_target_idsstring[]Não
target_categorystringNão
requires_capabilitiesstring[]NãoCapability 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>NãoWhat 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_providerstringNão
image_modelstringNão
featured_imagebooleanNão
inline_image_countintegerNão
inline_placementstring<after_intro, between_sections, end>Não
image_stylestringNão
publish_modestring<draft, schedule, publish>Sim⚖️ 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_hoursintegerNão
schedule_stagger_minutesintegerNãoMinutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint.
blocking_providersstring[]NãoProviders 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_atstringSim
updated_atstringNão

Erros que este endpoint pode retornar

401 · 403 · 404 · 422 · 429