agency-board

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

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

Барлық agency-board соңғы нүктелері

Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Бұл соңғы нүкте сипаттамада арнайы рұқсатты көрсетпейді, сондықтан болжағаннан гөрі кілтіңізге қажетті ең аз рұқсатты беріп, жауапты тексеріңіз.

Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

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

Жүйеге кіргенсіз бе? Бақылау тақтасындағы 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.

Параметрлер

АтыTүріМіндеттіМазмұны
boardId (path)UuidИәProject board ID (UUIDv7).

Сұрау денесі

АтыTүріМіндеттіМазмұны
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Жоқ

Жауап

АтыTүріМіндеттіМазмұны
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