---
title: "Update a group"
method: PATCH
path: "/v1/connections/{connection}/groups/{group}"
tags: ["Groups"]
---

# Update a group

`PATCH /v1/connections/{connection}/groups/{group}`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/connections/{connection}/groups/{group}`
- Auth: HTTP bearer

Change the name or description, or who may send messages and edit group info. This number must be an admin of the group. Paid plans.

## Path parameters

- `connection` string, required
- `group` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `messages_admins_only` boolean
  - `info_admins_only` boolean

## Response `200`

The updated group.

## Other responses

- `409`: WhatsApp refused; not an admin?

---

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