---
title: "Set per-agent budgets, clearance, or active state"
method: PATCH
path: "/agents"
---

# Set per-agent budgets, clearance, or active state

`PATCH /agents`

## Request

- Base URL: `https://getsanction.com/api/v1`
- URL: `https://getsanction.com/api/v1/agents`
- Auth: API key in header `x-mgmt-key`

Override budgets per agent (null clears to inherit the wallet policy), set clearance, revoke/reactivate with { active }, or set seat fields: holder (null clears) and expires_at (null clears the auto-shutoff). Management-plane.

## Request body

- UpdateAgentRequest: Per-agent overrides. A number sets a $ override; null clears it (inherit wallet policy); omitting a field leaves it unchanged.
  - `wallet_id` string, required
  - `agent_id` string, required
  - `daily_token_budget_usd` number, nullable
  - `monthly_token_budget_usd` number, nullable: Optional per-seat monthly token cap (dollars). Null clears (inherit / daily-only).
  - `daily_spend_budget_usd` number, nullable
  - `per_transaction_max_usd` number, nullable
  - `escalate_over_usd` number, nullable
  - `clearance` integer
  - `active` boolean: false revokes the agent's key; true reactivates it (SEC-6).

## Response `200`

Updated agent

- UpdateAgentResponse
  - `id` string
  - `name` string
  - `active` boolean
  - `clearance` integer, nullable
  - `overrides` object
    - `daily_token_budget_usd` number, nullable
    - `daily_spend_budget_usd` number, nullable
    - `per_transaction_max_usd` number, nullable
    - `escalate_over_usd` number, nullable

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid management key
- `404`: Agent not found in this wallet

---

[API](https://skmtc.dev/getsanction/apis/sanction-agent-governance-api.md) · [All operations](https://skmtc.dev/getsanction/apis/sanction-agent-governance-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getsanction/apis/sanction-agent-governance-api/revisions/c645a9e4b72d?raw)
