Deletes members from an IM group.
Operation description
Deleting IM group members via the API is a beta feature from Meta. Contact your account manager to be added to the allowlist before using this endpoint.
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 number. Call the ListChatGroup operation to view the business numbers. | 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 of the ISV sub-customer, or the instance ID of the direct customer. View the Space 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 retrieve a list of current 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.