agency-board

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

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

Gbogbo àwọn agency-board endpoints

Ìfàṣẹ́pọ̀

Fi bọ́kì kọ́kọ́ (bearer token) ránṣẹ́ gẹ́gẹ́ bí àmì ìdánimọ̀ API. Ibùdó yìí kò sọ àṣẹ pàtó kan nínú àlàyé rẹ̀, nítorí náà fún kọ́kọ́ rẹ̀ ní ohun tó kéré jù lọ tí ó nílò kí o sì ṣàyẹ̀wò ìdáhùn náà dípò kí o kàn rò ó.

Ojú abánisọ̀rọ̀ yìí kò gba id ajọ kankan. Kọ́kọ́rọ́ rẹ ti mọ ajọ ti o jẹ ti e, a o si fèsì nipa rẹ̀.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

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

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

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.

Àwọn ìpìlẹ̀

OrúkọIruTí a nílòKini o jẹ
boardId (path)UuidBẹẹniProject board ID (UUIDv7).

Akoonu ibeere naa

OrúkọIruTí a nílòKini o jẹ
namestringBẹẹni
descriptionstringBẹẹkọ
triggerstringBẹẹni
trigger_configobjectBẹẹkọPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]BẹẹkọANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Bẹẹkọ
statusstring<enabled, disabled>Bẹẹkọ
positionintegerBẹẹkọ

Idahun

OrúkọIruTí a nílòKini o jẹ
idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringBẹẹni
descriptionstringBẹẹkọ
triggerstringBẹẹni
trigger_configobjectBẹẹkọ
conditionsBoardAutomationCondition[]Bẹẹkọ
actionsBoardAutomationAction[]Bẹẹkọ
statusBoardAutomationStatusBẹẹni`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…
positionintegerBẹẹkọ
run_countintegerBẹẹkọ
fired_countintegerBẹẹkọ
consecutive_failuresintegerBẹẹkọ
suspended_reasonstringBẹẹkọ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_atstringBẹẹkọ
last_fired_atstringBẹẹkọ
last_run_atstringBẹẹkọ
next_due_atstringBẹẹkọOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringBẹẹkọ
updated_atstringBẹẹkọ

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 404 · 422