---
title: "Patch Agent"
method: PATCH
path: "/v1/agents/{agent_id}"
tags: ["agents"]
---

# Patch Agent

`PATCH /v1/agents/{agent_id}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/agents/{agent_id}`
- Auth: none declared

Platform staff only. The editor loads and saves SOURCE text.

## Path parameters

- `agent_id` string, required

## Request body

- AgentPatchIn: PARTIAL update. An omitted field is UNCHANGED, never cleared — the editor does not need to send the whole object back (that is PUT semantics). `extra="forbid"` rejects unknown fields with 422 instead of ignoring them: a silently dropped field is how an editor believes it saved something it did not.
  - `label` string, nullable
  - `description` string, nullable
  - `content` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
