# Update an agent

**PUT** `/v1/agents/{id}`

**Operation ID**: `update`
**Summary**: Update an agent
Updates an agent. The version must match the version the client most recently observed, else a 409 Conflict is returned.

## Tags
- Agents
## Parameters

- **id** (required) - path
  - Type: string

## Request Body

**Content-Type**: `application/json`

**Schema**: `AgentConfigUpdate`

## Responses

### 200

Agent updated successfully

- **Content-Type**: `application/json` / `AgentConfig`
### 400

A referenced model or MCP integration does not exist

### 401

Unauthorized

### 404

Agent not found

### 409

Agent was modified concurrently
