links

POST /v1/content/run-schedules

Post to these sites every N hours.

Todos os endpoints de links

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

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 POST https://api.zinndigital.com/v1/content/run-schedules \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

Creates a cadence. The first run happens one interval from now, not immediately — a customer setting up a daily schedule at 4pm expects one tomorrow, not one before they have finished reading the form. Gated on `links.edit`. The cadence is served by a durable workflow on the worker, not by a job that calls this API back, so a scheduled run behaves identically to one started by hand. Minimum interval is one hour: anything finer on a private network is a footprint.

Corpo da requisição

NomeTipoObrigatórioO que é
briefstringNão
site_idsstring[]Não
anchorsContentRunAnchor[]Não
categorystringNão
publish_policyContentRunPublishPolicyNãoHow far a run may go on its own. `draft_only` is the default and puts nothing live.
interval_hoursintegerNão
enabledbooleanNão
recipe_idstringNão

Resposta

NomeTipoObrigatórioO que é
idstringSim
enabledbooleanSim
interval_hoursintegerSim
next_run_atstringSim
last_run_atstringNão
last_run_idstringNão
briefstringSim
categorystringNão
publish_policyContentRunPublishPolicySimHow far a run may go on its own. `draft_only` is the default and puts nothing live.
site_idsstring[]Sim
recipe_idstringNão

Erros que este endpoint pode retornar

401 · 403 · 422