agency-board

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

Change a rule, or pause and resume it.

Ҳамаи нуқтаҳои ниҳоии agency-board

Санҷиши ҳаққоният

Kalitи API-ро ҳамчун token-и bearer фиристед. Ин нуқтаи ниҳоӣ дар мушаххасот иҷозати мушаххасеро нишон намедиҳад, бинобар ин ба калиди худ ҳадди ақали заруриро диҳед ва ба ҷои тахмин кардан, ҷавобро санҷед.

Ин нуқтаи поёнӣ ягон рақами мушаххаси созмонро талаб намекунад. Калиди шумо аллакай созмонеро, ки ба он тааллуқ дорад, муайян мекунад ва ҷавоб ба он маҳдуд карда мешавад.

Санҷидан

Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.

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

Воarid шудаед? Консоли 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