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.