---
title: "Update agent"
method: PATCH
path: "/api/agents/{agentId}"
tags: ["agents"]
---

# Update agent

`PATCH /api/agents/{agentId}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/agents/{agentId}`
- Auth: none declared

Update an existing agent

## Path parameters

- `agentId` string, uuid, required

## Request body

- object: Agent updates

## Response `200`

Agent updated successfully

- object
  - `success` boolean
  - `data` AgentInfo
    - `id` string, uuid: Unique identifier for the agent
    - `name` string: Name of the agent
    - `status` 'active' | 'inactive': Current status of the agent

## Other responses

- `400`: Invalid agent ID
- `404`: Agent not found
- `500`: Error updating agent

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
