agency-board

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

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

Tất cả các điểm cuối agency-board

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Điểm cuối này không nêu rõ quyền cụ thể trong thông số kỹ thuật, vì vậy hãy cấp cho khóa của bạn quyền tối thiểu cần thiết và kiểm tra phản hồi thay vì phỏng đoán.

Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

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

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

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.

Tham số

TênLoạiBắt buộcNội dung này là gì
boardId (path)UuidProject board ID (UUIDv7).

Nội dung yêu cầu

TênLoạiBắt buộcNội dung này là gì
namestring
descriptionstringKhông
triggerstring
trigger_configobjectKhôngPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]KhôngANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Không
statusstring<enabled, disabled>Không
positionintegerKhông

Phản hồi

TênLoạiBắt buộcNội dung này là gì
idUuidUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestring
descriptionstringKhông
triggerstring
trigger_configobjectKhông
conditionsBoardAutomationCondition[]Không
actionsBoardAutomationAction[]Không
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…
positionintegerKhông
run_countintegerKhông
fired_countintegerKhông
consecutive_failuresintegerKhông
suspended_reasonstringKhôngWhy 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_atstringKhông
last_fired_atstringKhông
last_run_atstringKhông
next_due_atstringKhôngOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringKhông
updated_atstringKhông

Các lỗi điểm cuối này có thể trả về

401 · 403 · 404 · 422