agency-board

POST /v1/agency/boards/{boardId}/automations

Create a rule — when this happens, only if that, then do these.

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

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

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

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

Санҷидан

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

curl -X POST https://api.zinndigital.com/v1/agency/boards/{boardId}/automations \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "trigger": <string> }'

Воarid шудаед? Консоли API дар панели идоракунии шумо рақами мушаххаси ташкилоти воқеӣ ва калиди худро пур мекунад ва дархостро бар зидди API-и фаъол иҷро мекунад, то шумо посухи воқеиро бубинед. Ин нуқтаи ниҳоиро дар консоли API кушоед

Тафсилот

Validated against the catalogue at save time, not at run time. A rule pairing a card action with a trigger that carries no card, naming a context field its trigger does not publish, or using an operator the field's type cannot take is refused here with the offending clause named — because the alternative is a rule that sits in the list looking enabled and does nothing for ever, whose only evidence is an absence.

Параметрҳо

НомНамудТалаб карда мешавадИн чӣ аст
boardId (path)UuidБалеProject board 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