---
title: "Update an agent"
method: PUT
path: "/v1/agent/{agentId}"
tags: ["Agent"]
---

# Update an agent

`PUT /v1/agent/{agentId}`

Updates an existing agent by its ID.

## Path parameters

- `agentId` string, required

## Request body

- object — Input for updating an existing agent
  - `name` string — Name of the agent
  - `description` string, nullable — Description of the agent

## Response `200`

The updated agent

- object
  - `data` object, required
    - `id` string, uuid, required — Unique identifier of the agent
    - `name` string, required — Name of the agent
    - `description` string, nullable, required — Description of the agent
    - `customId` string, nullable, required — Custom identifier for the agent
    - `createdAt` string, required — Creation timestamp in ISO 8601 format
    - `updatedAt` string, required — Last update timestamp in ISO 8601 format

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-08-17** `887b091b3d81` — 8 warning
  - added the new `conflict` enum value to the `type` response property for the response status `400`
  - added the new `conflict` enum value to the `type` response property for the response status `401`
  - added the new `conflict` enum value to the `type` response property for the response status `404`
  - added the new `conflict` enum value to the `type` response property for the response status `500`
  - …4 more

[Change history](https://skmtc.dev/roarkhq/apis/roark-analytics-api/changes/v1/agent/:agentId/put.md)

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) · [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roarkhq/roark-analytics-api/revisions/1d61b68e9429/schema)
