---
title: "POST /agents/update/{agentId}"
method: POST
path: "/agents/update/{agentId}"
tags: ["agents"]
---

# POST /agents/update/{agentId}

`POST /agents/update/{agentId}`

## Path parameters

- `agentId` string, required

## Request body

- UpdateAgentDto
  - `name` string, required

## Response `201`

- UpdatedAgentDto
  - `id` string, required
  - `name` string, required
  - `projectId` string, required
  - `creatorId` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401` — You are not authorized to access this resource

## Changes

- **2023-10-05** `57c187dff7a4` — 1 info
  - endpoint added
- **2023-09-20** `6610666a572e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentlabs-dev/apis/agentlabs-api/changes/agents/update/:agentId/post.md)

---

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