Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Headers
UID of the user on whose behalf the action is performed.
Response
200 - application/json
Create Group
curl --request POST \
--url https://{appid}.api-{region}.cometchat.io/v3/groups/{guid}/bannedusers/{uid} \
--header 'apikey: <api-key>'{
"data": {
"success": true,
"message": "The user with uid superhero3 has been banned from the Group with supergroup."
}
}Bans a member from a group for a given GUID and UID.
curl --request POST \
--url https://{appid}.api-{region}.cometchat.io/v3/groups/{guid}/bannedusers/{uid} \
--header 'apikey: <api-key>'{
"data": {
"success": true,
"message": "The user with uid superhero3 has been banned from the Group with supergroup."
}
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UID of the user on whose behalf the action is performed.
Create Group
Was this page helpful?