Skip to main content
PUT
Update Policy

Parámetros de ruta

string
requerido
ID de la política a actualizar (por ejemplo, pol_abc123).

Cuerpo de la solicitud

object
requerido
Objeto de reglas de la política actualizado. La estructura depende del type de la política.

Ejemplo

Autorizaciones

X-API-Key
string
header
requerido

API key authentication. Keys are prefixed with awx_.

Parámetros de ruta

id
string
requerido

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

Cuerpo

application/json
rules
object
requerido

Policy rules object. Structure depends on the policy type.

Respuesta

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.

Opciones disponibles:
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.