Skip to main content
PUT
Update Policy

Tham số đường dẫn

string
bắt buộc
ID chính sách cần cập nhật (ví dụ: pol_abc123).

Nội dung yêu cầu

object
bắt buộc
Đối tượng quy tắc chính sách đã cập nhật. Cấu trúc phụ thuộc vào type của chính sách.

Ví dụ

Ủy quyền

X-API-Key
string
header
bắt buộc

API key authentication. Keys are prefixed with awx_.

Tham số đường dẫn

id
string
bắt buộc

The policy ID to update (e.g., pol_abc123).

Nội dung

application/json
rules
object
bắt buộc

Policy rules object. Structure depends on the policy type.

Phản hồi

Policy updated successfully.

A policy that controls what transactions an agent is allowed to execute.

id
string

Unique policy identifier (e.g., pol_abc123).

agent_id
string

Agent this policy is attached to.

type
enum<string>

Policy type.

Tùy chọn có sẵn:
spending_limit,
address_control,
token_control,
velocity_control,
schedule,
human_approval
rules
object

Policy rules object. Structure depends on the policy type.

created_at
string<date-time>

ISO 8601 creation timestamp.

updated_at
string<date-time>

ISO 8601 last-update timestamp.