---
title: "Update an agent"
method: PATCH
path: "/v1/agents/{id}"
tags: ["Agents"]
---

# Update an agent

`PATCH /v1/agents/{id}`

## Request

- Base URL: `https://api.chronary.ai`
- URL: `https://api.chronary.ai/v1/agents/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: Agent ID

## Request body

- UpdateAgent
  - `name` string
  - `description` string, nullable
  - `metadata` object
  - `status` 'active' | 'paused'

## Response `200`

Updated agent

- Agent
  - `id` string, required
  - `orgId` string, required
  - `name` string, required
  - `type` 'ai' | 'human' | 'resource', required
  - `description` string, nullable, required
  - `status` 'active' | 'paused' | 'decommissioned', required
  - `metadata` object, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: Validation error — invalid request body or query parameters
- `401`: Unauthorized — missing or invalid API key
- `404`: Resource not found
- `429`: Rate limited — 10 requests per second per key exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/chronary/apis/chronary-api.md) · [All operations](https://skmtc.dev/chronary/apis/chronary-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chronary/apis/chronary-api/revisions/0d1a330294ae?raw)
