agency-board

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

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

Բոլոր agency-board վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer թոքեն։ Այս վերջնակետը բնութագրում չի նշում որոշակի թույլտվության մասին, ուստի տվեք ձեր բանալուն նվազագույն անհրաժեշտը և ենթադրություններ անելու փոխարեն ստուգեք պատասխանը:

Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

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 վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ 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