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
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
brief | string | Não | — |
site_ids | string[] | Não | — |
anchors | ContentRunAnchor[] | Não | — |
category | string | Não | — |
publish_policy | ContentRunPublishPolicy | Não | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
interval_hours | integer | Não | — |
enabled | boolean | Não | — |
recipe_id | string | Não | — |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
id | string | Sim | — |
enabled | boolean | Sim | — |
interval_hours | integer | Sim | — |
next_run_at | string | Sim | — |
last_run_at | string | Não | — |
last_run_id | string | Não | — |
brief | string | Sim | — |
category | string | Não | — |
publish_policy | ContentRunPublishPolicy | Sim | How far a run may go on its own. `draft_only` is the default and puts nothing live. |
site_ids | string[] | Sim | — |
recipe_id | string | Não | — |
Erros que este endpoint pode retornar
401 · 403 · 422