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

# Update agent

`PATCH /api/agents/{agentId}`

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.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
