agency-board
PATCH /v1/agency/boards/{boardId}/automations/{ruleId}
Change a rule, or pause and resume it.
Аутентификација
Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
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 конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом 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). |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
name | string | Да | — |
description | string | Не | — |
trigger | string | Да | — |
trigger_config | object | Не | Per-trigger settings, e.g. hours_before for "due date approaching". |
conditions | BoardAutomationCondition[] | Не | ANDed. An empty list means the rule always matches its trigger. |
actions | BoardAutomationAction[] | Не | — |
status | string<enabled, disabled> | Не | — |
position | integer | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
board_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Да | — |
description | string | Не | — |
trigger | string | Да | — |
trigger_config | object | Не | — |
conditions | BoardAutomationCondition[] | Не | — |
actions | BoardAutomationAction[] | Не | — |
status | BoardAutomationStatus | Да | 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 collapsing… |
position | integer | Не | — |
run_count | integer | Не | — |
fired_count | integer | Не | — |
consecutive_failures | integer | Не | — |
suspended_reason | string | Не | 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… |
suspended_at | string | Не | — |
last_fired_at | string | Не | — |
last_run_at | string | Не | — |
next_due_at | string | Не | Only set for a wall-clock rule. Null for a rule on a live act. |
created_at | string | Не | — |
updated_at | string | Не | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422