Deletes members from an Instant Messaging (IM) group.
Operation description
-
Before you call this operation, ensure that you have created an IM group and an invitation link, and that members have joined the group using the link.
-
If you have not created an IM group, call the AddChatGroup and AddChatGroupInviteLink operations to create a group and add an invitation link.
-
After a member is deleted from an IM group, the member will 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 phone number. Call the ListChatGroup operation to view the business phone number. |
8613800** |
| ChannelType |
string |
No |
The channel type. Valid value:
Note
Only WhatsApp is supported. |
|
| GroupId |
string |
Yes |
The group ID. Call the ListChatGroup operation to obtain the group ID. |
EA93UU**** |
| CustSpaceId |
string |
Yes |
The space ID or instance ID of the independent software vendor (ISV) sub-customer. This is the channel ID. You can view the channel ID on the Channel Management page. |
cams-** |
| List |
array<object> |
No |
A list of group members. |
|
|
object |
No |
Information about a group member. |
||
| ParticipantNumber |
string |
No |
The phone number of the group member. Call the ListChatGroupParticipants operation to obtain the phone numbers of group members. |
86138*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| Message |
string |
The error message. |
None |
| RequestId |
string |
The ID of the request. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Code |
string |
The status code of the request. 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.