Certain actions can be performed on the group members:Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- Kick a member from the group
- Ban a member from the group.
- Unban a member from the group.
- Update the scope of the member of the group.
It simply bans the UID mentioned in the path parameter of the request. The banned user will be no longer part of the group and can not perform any actions in the group. A banned user cannot rejoin the same group without being unbanned.
Available operations
| Method | Endpoint | Description |
|---|---|---|
| POST | /groups/{guid}/banned_members | Ban a user from a group |
| GET | /groups/{guid}/banned_members | List all banned members of a group |
| DELETE | /groups/{guid}/banned_members/{uid} | Unban a user from a group |
Banned user properties
| Property | Type | Description |
|---|---|---|
| uid | string | UID of the banned user |
| scope | string | Former scope of the user in the group before being banned |
| bannedAt | integer | UNIX timestamp of when the user was banned |
Error handling
| Error Code | Description |
|---|---|
AUTH_ERR_EMPTY_APIKEY | API key is missing from the request headers |
AUTH_ERR_APIKEY_NOT_FOUND | The provided API key is invalid |
ERR_GUID_NOT_FOUND | The specified group GUID does not exist |
ERR_UID_NOT_FOUND | The specified user UID does not exist |