Create Policy
Chính sách
Tạo chính sách
Tạo chính sách mới và gắn vào một agent.
POST
Create Policy
Chính sách kiểm soát các giao dịch mà agent được phép thực hiện. Mọi giao dịch đều được đánh giá theo các chính sách của agent trước khi ký MPC.
Nội dung yêu cầu
Agent để gắn chính sách này.
Loại chính sách. Giá trị:
spending_limit, address_control, token_control, velocity_control, schedule, human_approval.Đối tượng quy tắc chính sách. Cấu trúc phụ thuộc vào
type.Ví dụ
Ủy quyền
API key authentication. Keys are prefixed with awx_.
Nội dung
application/json
Phản hồi
Policy created successfully.
A policy that controls what transactions an agent is allowed to execute.
Unique policy identifier (e.g., pol_abc123).
Agent this policy is attached to.
Policy type.
Tùy chọn có sẵn:
spending_limit, address_control, token_control, velocity_control, schedule, human_approval Policy rules object. Structure depends on the policy type.
ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.