---
title: "Batch update users (chat API)"
method: PATCH
path: "/v1/chats/users"
tags: ["Chats"]
deprecated: true
---

# Batch update users (chat API)

`PATCH /v1/chats/users`

## Request

- Base URL: `https://api.chat.ethora.com`
- URL: `https://api.chat.ethora.com/v1/chats/users`
- Auth: HTTP bearer

> **Deprecated.**

**Deprecated**: use `/v2/chats/users` instead.

**Auth**: User JWT

## Request body

- object
  - `users` object[]: Array of membership-flag patches. Each entry is `{ chatName, xmppUsername, ...flags }` - `chatName` and `xmppUsername` identify the membership row; `flags` (e.g. `isNew`, `reported`) update its state. Use `/v2/apps/{appId}/chats/users-access` for adding / removing members.

## Response `200`

```
{ results: array }
```

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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