logo
In-app Chat
Powered Byspreading
On this page

Disband a group chat


Overview

You can call this operation to disband a group chat.

After a group chat is successfully disbanded, all group members receive the disbandment notification in the following ZIM SDK callbacks.

iOSAndroidmacOSWindows
groupStateChangedonGroupStateChangedgroupStateChangedonGroupStateChanged
WebFlutterUnity3DReact Native
groupStateChangedonGroupStateChangedOnGroupStateChangedgroupStateChanged

Operation prototype

  • Request method: GET
  • Request URL: https://zim-api.zego.im/?Action=DismissGroup
  • Protocol: HTTPS
  • QPS limit: 1 call per second, applicable to group chats only. If you need a higher limit, contact ZEGOCLOUD technical support.

Request parameters

The following table describes only the operation-specific request parameters and some common request parameters. For the complete list of common request parameters, see the Public request parameters section of the Accessing Server APIs topic.

ParameterTypeRequiredDescription
FromUserIdStringYesThe ID of the operator. The operator can be any user and does not need to be in the group chat or be the group owner.
GroupIdStringYesThe group chat ID.
Note

The FromUserId and GroupID parameters can contain only digits, letters, and the following characters: '!', '#', '$', '%', '&', '(', ')', '+', '', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', ', ', '|', '~'.

Sample request

Untitled
https://zim-api.zego.im/?Action=DismissGroup
&FromUserId=zego_user&GroupId=groupid
&<Common request parameters>
1
Copied!

Response parameters

ParameterTypeDescription
CodeNumberThe return code.
MessageStringThe description of the operation result.
RequestIdStringThe request ID.

Sample response

Untitled
{
    "Code": 0,
    "Message": "success",
    "RequestId": "343649807833778782"
}
1
Copied!

Return codes

The following table describes only the return codes related to the business logic of the operation. For the complete list of return codes, see Return codes.

Return CodeDescriptionSolution
660000002Invalid parameter.Check the input parameter.
660300006The QPS limit is exceeded.Please try again later, or check the QPS limit.
660500002The operator is not registered.Register the operator.
660600001The group chat does not exist.Check whether the value of the GroupID parameter is valid.

Previous

Mute group members

Next

Send a one-to-one message