agency-board

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

Change a rule, or pause and resume it.

Všechny koncové body agency-board

Autentizace

Odešlete klíč API jako bearer token. Tento koncový bod ve specifikaci uvádí specifické oprávnění, takže svému klíči udělte to nejmenší možné a místo předpokladů zkontrolujte odpověď.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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> }'

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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.

Parametry

NázevTypPožadovánoCo to je
boardId (path)UuidAnoProject board ID (UUIDv7).
ruleId (path)UuidAnoAutomation rule ID (UUIDv7).

Tělo požadavku

NázevTypPožadovánoCo to je
namestringAno
descriptionstringNe
triggerstringAno
trigger_configobjectNePer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]NeANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Ne
statusstring<enabled, disabled>Ne
positionintegerNe

Odpověď

NázevTypPožadovánoCo to je
idUuidAnoUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidAnoUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringAno
descriptionstringNe
triggerstringAno
trigger_configobjectNe
conditionsBoardAutomationCondition[]Ne
actionsBoardAutomationAction[]Ne
statusBoardAutomationStatusAno`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…
positionintegerNe
run_countintegerNe
fired_countintegerNe
consecutive_failuresintegerNe
suspended_reasonstringNeWhy 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_atstringNe
last_fired_atstringNe
last_run_atstringNe
next_due_atstringNeOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringNe
updated_atstringNe

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 422