Updates a specific chat, such as modifying its users.
| Permission | Description |
|---|---|
chats.update | Update your own chat |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| chat-id | int | Yes | ID of the chat to update | 123 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| users | array | No | Array of user IDs | [1, 2, 3] |
{
"users": [1, 2, 3]
}
Returns the updated chat resource.
{
"chat": { /* chat resource */ }
}
For a full schema, see Chat Resource.
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |