---
title: "Update an agent"
method: PATCH
path: "/api/v2/agents/{id}"
tags: ["Agents"]
---

# Update an agent

`PATCH /api/v2/agents/{id}`

Updates an existing agent's attributes such as name, title, manager, or custom role.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

A single agent record returned in JSON:API format, including attributes and related resources.

## Other responses

- `422` — Returned when the agent update fails validation — for example, when required fields are missing or contain invalid values.

---

[API](https://skmtc.net/productive/apis/api-documentation.md) · [All operations](https://skmtc.net/productive/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/productive/api-documentation/versions/6bb0150a5c5f/schema)
