---
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

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/c0f54348e251/schema)
