agency-board

PATCH /v1/agency/boards/{boardId}/automations/{ruleId}

Change a rule, or pause and resume it.

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 PATCH https://api.zinndigital.com/v1/agency/boards/{boardId}/automations/{ruleId} \
  -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

The WHOLE rule is re-validated, not just the changed fields — a change to the trigger alone can invalidate an action that was fine before it. ⛔ `suspended` is not settable. That status means *we* paused the rule after repeated failure and carries a reason the customer has not read; letting it be written would make our decision indistinguishable from theirs. Re-enabling a suspended rule clears its failure count.

Tham số

TênLoạiBắt buộcNội dung này là gì
boardId (path)UuidProject board ID (UUIDv7).
ruleId (path)UuidAutomation rule 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