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

# Update agent

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

## Request

- Base URL: `http://dobby-ai.com`
- URL: `http://dobby-ai.com/api/v1/agents/{id}`
- Auth: HTTP bearer

Update agent name, description, or status

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `status` 'active' | 'draft' | 'archived'

## Response `200`

Agent updated

- object
  - `success` boolean
  - `data` Agent
    - `id` string
    - `name` string
    - `description` string
    - `role` string
    - `status` 'active' | 'draft' | 'archived'
    - `requires_approval` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `message` string

## Other responses

- `401`: Unauthorized - Missing or invalid authentication
- `403`: Forbidden - Missing required scope
- `404`: Not Found - Resource does not exist

---

[API](https://skmtc.dev/dobby-ai/apis/dobby-platform-api.md) · [All operations](https://skmtc.dev/dobby-ai/apis/dobby-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dobby-ai/apis/dobby-platform-api/revisions/398634f0306f?raw)
