agency-board

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

Change a rule, or pause and resume it.

Усі кінцеві точки agency-board

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ця кінцева точка не вказує конкретного дозволу в специфікації, тому надайте своєму ключу мінімально необхідні права та перевірте відповідь, замість того щоб припускати.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

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

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

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.

Параметри

НазваТипОбов'язковеЩо це таке
boardId (path)UuidТакProject board ID (UUIDv7).
ruleId (path)UuidТакAutomation rule ID (UUIDv7).

Тіло запиту

НазваТипОбов'язковеЩо це таке
namestringТак
descriptionstringНі
triggerstringТак
trigger_configobjectНіPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]НіANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Ні
statusstring<enabled, disabled>Ні
positionintegerНі

Відповідь

НазваТипОбов'язковеЩо це таке
idUuidТакUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidТакUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringТак
descriptionstringНі
triggerstringТак
trigger_configobjectНі
conditionsBoardAutomationCondition[]Ні
actionsBoardAutomationAction[]Ні
statusBoardAutomationStatusТак`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…
positionintegerНі
run_countintegerНі
fired_countintegerНі
consecutive_failuresintegerНі
suspended_reasonstringНіWhy 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_atstringНі
last_fired_atstringНі
last_run_atstringНі
next_due_atstringНіOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringНі
updated_atstringНі

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422