Disbanding Groups

Last updated: 2020-03-12 15:01:10


Feature Description

The app admin uses this API to dismiss groups.

API Calling Description

Applicable group types

Group Type Support This RESTful API
Private Yes
Public Yes
ChatRoom Yes
AVChatRoom Yes
BChatRoom Yes

IM provides the preceding five built-in group types. For details, see the Group System.

Request URL example


Request parameters

The following table lists only the parameters to be modified when this API is called. For details on more parameters, see RESTful API Overview.

Parameter Description
v4/group_open_http_svc/destroy_group Request API
sdkappid SDKAppID assigned by the IM console when an app is created
identifier The value must be the app admin account. For details, see App Admins.
usersig Signature generated by the app admin account. For details, see Generating UserSig.
random A random 32-bit unsigned integer ranging from 0 to 4294967295

Maximum calling frequency

The maximum calling frequency is 200 times per second.

Request packet example

A dismissed group cannot be restored. Therefore, call this API with caution.

    "GroupId": "@TGS#2J4SZEAEL"

Request packet fields

Field Type Attribute Description
GroupId String Required ID of the target group

Response packet example

    "ActionStatus": "OK",
    "ErrorInfo": "",
    "ErrorCode": 0

Response packet fields

Field Type Description
ActionStatus String Request processing result. OK: succeeded. FAIL: failed.
ErrorCode Integer Error code. 0: succeeded. Others: failed.
ErrorInfo String Error information

Error Codes

Unless a network error (such as error 502) occurs, the HTTP return code for this API is always 200. ErrorCode and ErrorInfo in the response packet represent the actual error code and error information, respectively.
For common error codes (60000 to 79999), see Error Codes.
The following table describes the error codes specific to this API.

Error Code Description
10002 An internal server error occurred. To correct it, try again.
10003 The request command word is invalid.
10004 A parameter is invalid. To correct it, check whether request parameters are correct based on the error description.
10007 Operation permissions are insufficient. For example, a common member in a public group attempts to remove a member from the group, but only the app admin has the permission to do so.
10010 The group does not exist or has been dismissed.
10015 The group ID is invalid. To correct it, check whether the group ID is correct.

API Commissioning Tool

Use the online commissioning tool for RESTful APIs to commission this API.


Creating a group (v4/group_open_http_svc/create_group)

Callback That May Be Triggered

Callback after dismissing a group