Removes members from an IM group.
Operation description
-
This operation requires an existing IM group that members have joined via an invitation link.
-
To create an IM group and add an invitation link, call the AddChatGroup and AddChatGroupInviteLink operations.
-
Removed members no longer receive messages from the group. Use this operation with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:DeleteChatGroupParticipants |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BusinessNumber |
string |
Yes |
The business number. You can obtain the business number by calling the ListChatGroup operation. |
8613800** |
| ChannelType |
string |
No |
The channel type. Valid value:
Note
Currently, only the WhatsApp channel is supported. |
|
| GroupId |
string |
Yes |
The group ID. You can obtain the group ID by calling the ListChatGroup operation. |
EA93UU**** |
| CustSpaceId |
string |
Yes |
The space ID of the ISV sub-customer or the instance ID. This ID is also the channel ID. You can find the channel ID on the Channel Management page. |
cams-** |
| List |
array<object> |
No |
A list of group members to remove. |
|
|
object |
No |
Information about a group member. |
||
| ParticipantNumber |
string |
No |
The participant number of the group member. You can obtain the participant numbers of group members by calling the ListChatGroupParticipants operation. |
86138*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Code |
string |
The status code. Valid values:
|
OK |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
false |
| Result |
integer |
The number of rows affected. |
20 |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
"Code": "OK",
"Success": false,
"Result": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.