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.