Skip to main content
PUT
Update Policy

Path Parameters

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

Request Body

object
required
Updated policy rules object. Structure depends on the policy’s type.

Example

Authorizations

X-API-Key
string
header
required

API key authentication. Keys are prefixed with awx_.

Path Parameters

id
string
required

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

Body

application/json
rules
object
required

Policy rules object. Structure depends on the policy type.

Response

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.

Available options:
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.