agency-board

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

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

ყველა agency-board ენდპოინტი

ავტორიზაცია

API გასაღები გაგზავნეთ როგორც bearer token. ეს ენდპოინტი სპეციფიკაციაში არ მიუთითებს კონკრეტულ ნებართვას, ამიტომ მიანიჭეთ თქვენს გასაღებს მინიმალური საჭირო უფლებები და ვარაუდის ნაცვლად შეამოწმეთ პასუხი.

ეს ბოლო წერტილი არ იღებს ორგანიზაციის იდენტიფიკატორს. თქვენი გასაღები უკვე აიდენტიფიცირებს იმ ორგანიზაციას, რომელსაც ის ეკუთვნის, და პასუხი შემოფარგლულია მისით.

სცადეთ

შეSubstituted any value inside angle brackets with your own and the key placeholder with a key from your dashboard.

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-ს წინააღმდეგ, რათა იხილოთ რეალური პასუხი. გაAღით ეს ენდპოინტი 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