Skip to main content
PUT
Update Policy

路徑參數

string
必填
要更新的策略 ID(例如 pol_abc123)。

請求內容

object
必填
更新後的策略規則物件。結構取決於策略的 type

範例

授權

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

路徑參數

id
string
必填

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

主體

application/json
rules
object
必填

Policy rules object. Structure depends on the policy type.

回應

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.

可用選項:
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.