---
title: "Update a group chat"
method: PATCH
path: "/chat/groups/{chatId}"
tags: ["Chat"]
---

# Update a group chat

`PATCH /chat/groups/{chatId}`

## Request

- Base URL: `https://viral.app/api/v1`
- URL: `https://viral.app/api/v1/chat/groups/{chatId}`
- Auth: API key in header `x-api-key`

Renames a group (`title`, `publicTitle`; any kind) and/or adds and removes members of a `manual` group (`addOrgCreatorIds`, `removeOrgCreatorIds`). The members of `campaign` and `all` groups follow their roster: editing them returns 400 `MANUAL_ONLY`. Removed creators lose access to the group at once.

## Path parameters

- `chatId` string, required

## Request body

- object
  - `title` string
  - `publicTitle` string
  - `addOrgCreatorIds` string[]
  - `removeOrgCreatorIds` string[]

## Response `200`

OK

- object
  - `chatId` string, required
  - `title` string, required
  - `publicTitle` string, required
  - `memberCount` integer, required

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `404`: 404
- `408`: 408
- `429`: 429
- `500`: 500

---

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