---
title: "Update Chat Agent Group"
method: PUT
path: "/api/v1/chat-ai/agent-groups/{group_id}"
tags: ["chat-ai", "chat_agent_groups"]
---

# Update Chat Agent Group

`PUT /api/v1/chat-ai/agent-groups/{group_id}`

Replace a group's fields and re-provision its dispatch tools.

## Path parameters

- `group_id` string, uuid, required

## Request body

- ChatAgentGroupUpdate — Schema for updating a ChatAgentGroup (full replacement, PUT semantics). ``entries`` and ``enabled`` are required so a full-replacement PUT can never be an ambiguous partial update.
  - `name` string, required
  - `entries` ChatAgentGroupEntry[], required
    - `label` string, required
    - `description` string, nullable
    - `chat_agent_id` string, uuid, required
    - `dispatch_config` ChatDispatchConfig — Operator-configurable dispatch behavior for a specialist entry. Lives on the TARGET entry — it describes how the head agent should dispatch TO this specialist. Mirrors the text surface's ``DispatchScenarioConfig``.
      - `condition` string, nullable
      - `pre_instruction` string, nullable
      - `post_instruction` string, nullable
  - `enabled` boolean, required

## Response `200`

Successful Response

- ChatAgentGroupRead — Schema for reading a ChatAgentGroup.
  - `id` string, uuid, required
  - `name` string, required
  - `entries` ChatAgentGroupEntry[]
    - `label` string, required
    - `description` string, nullable
    - `chat_agent_id` string, uuid, required
    - `dispatch_config` ChatDispatchConfig — Operator-configurable dispatch behavior for a specialist entry. Lives on the TARGET entry — it describes how the head agent should dispatch TO this specialist. Mirrors the text surface's ``DispatchScenarioConfig``.
      - `condition` string, nullable
      - `pre_instruction` string, nullable
      - `post_instruction` string, nullable
  - `enabled` boolean
  - `tenant_id` string, uuid, required

## Other responses

- `400` — An entry references a missing or disabled chat agent
- `403` — Not a platform super-admin (or lacks VIEW_CHAT)
- `404` — Chat agent group not found
- `409` — A group with this name already exists in the tenant
- `422` — Validation Error

## Changes

> 26 revisions in range; 1 not diffed.

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/chat-ai/agent-groups/:group_id/put.md)

---

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