agency-board

PATCH /v1/agency/boards/{boardId}/automations/{ruleId}

Change a rule, or pause and resume it.

Todos os endpoints de agency-board

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 PATCH https://api.zinndigital.com/v1/agency/boards/{boardId}/automations/{ruleId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "trigger": <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

The WHOLE rule is re-validated, not just the changed fields — a change to the trigger alone can invalidate an action that was fine before it. ⛔ `suspended` is not settable. That status means *we* paused the rule after repeated failure and carries a reason the customer has not read; letting it be written would make our decision indistinguishable from theirs. Re-enabling a suspended rule clears its failure count.

Parâmetros

NomeTipoObrigatórioO que é
boardId (path)UuidSimProject board ID (UUIDv7).
ruleId (path)UuidSimAutomation rule ID (UUIDv7).

Corpo da requisição

NomeTipoObrigatórioO que é
namestringSim
descriptionstringNão
triggerstringSim
trigger_configobjectNãoPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]NãoANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Não
statusstring<enabled, disabled>Não
positionintegerNão

Resposta

NomeTipoObrigatórioO que é
idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringSim
descriptionstringNão
triggerstringSim
trigger_configobjectNão
conditionsBoardAutomationCondition[]Não
actionsBoardAutomationAction[]Não
statusBoardAutomationStatusSim`suspended` means WE paused it after repeated failure and it carries a reason the customer has not read. It is a third state rather than a reuse of `disabled`, because collapsin…
positionintegerNão
run_countintegerNão
fired_countintegerNão
consecutive_failuresintegerNão
suspended_reasonstringNãoWhy we paused this rule, in authored copy from a closed table — never an exception, a status or a message from our own code. The per-failure detail lives on each run (`action_re…
suspended_atstringNão
last_fired_atstringNão
last_run_atstringNão
next_due_atstringNãoOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringNão
updated_atstringNão

Erros que este endpoint pode retornar

401 · 403 · 404 · 422