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

# Update agent

`PATCH /v1/agents/{id}`

Updates agent details. All fields are optional - only provided fields will be updated. Cannot update soft-deleted agents (returns 404).

## Path parameters

- `id` string, uuid, required — Agent UUID

## Request body

- UpdateAgent
  - `name` string — Agent name
  - `prompt` string, nullable — System prompt (can be set to null)
  - `voiceConfig` union — Voice configuration (can be set to null)
    - object
    - unknown
    - unknown
  - `widgetConfig` union — Widget configuration (can be set to null)
    - object
    - unknown
    - unknown
  - `language` string, nullable — Agent language code (can be set to null)

## Response `200`

Agent updated successfully

- Agent
  - `id` string, uuid, required — Unique agent identifier
  - `workspaceId` string, uuid, required — Workspace ID that owns this agent
  - `name` string, required — Agent name
  - `prompt` string, nullable, required — System prompt for the agent
  - `voiceConfig` object, nullable, required — Voice configuration settings (JSON)
  - `widgetConfig` object, nullable, required — Widget appearance settings (JSON)
  - `language` string, nullable, required — Agent language code
  - `createdAt` string, date-time, required — Agent creation timestamp
  - `updatedAt` string, date-time, required — Agent last update timestamp
  - `deletedAt` string, date-time, nullable, required — Soft delete timestamp (null if active)

## Other responses

- `400` — Validation error - invalid request body or agent ID
- `401` — Missing or invalid API key
- `403` — API key does not have access to this agent
- `404` — Agent not found or soft-deleted

---

[API](https://skmtc.net/nedzo/apis/nedzo-api.md) · [All operations](https://skmtc.net/nedzo/apis/nedzo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nedzo/nedzo-api/revisions/f2607cdb56fa/schema)
