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, за да можете да видите действителния отговор. Отворете този крайpoint в 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Не

Грешки, които този крайpoint може да върне

401 · 403 · 404 · 422