Callback After Group Dissolution
Description
The App’s business server can use this callback to receive information on group dissolutions, enabling it to record such events in real-time (e.g., logging or syncing with other systems).
Important Notes
- To enable this callback, configure the callback URL and activate the corresponding protocol switch. For configuration details, refer to the Callback Introduction document.
- The callback is initiated from the OpenIM Server to the App backend as an HTTP/HTTPS POST request.
- The App business server must respond within the timeout period.
Scenarios that Trigger This Callback
- Group dissolution initiated by an App user through the client.
- Group dissolution initiated by an App admin via REST API.
Timing of Callback
- Triggered after the group is dissolved.
Interface Description
Example Request URL
The CallbackCommand here is: callbackAfterDisMissGroupCommand
{WEBHOOK_ADDRESS}/callbackAfterDisMissGroupCommand?contenttype=json
Example Request Package
{
  "callbackCommand": "callbackAfterDisMissGroupCommand",
  "groupID": "G001",
  "groupType": 2,
  "ownerID": "user123",
  "membersID": ["user456", "user789"]
}
Request Package Field Descriptions
| Field | Type | Description | 
|---|---|---|
| callbackCommand | string | Callback command for post-group dissolution. | 
| groupID | string | Unique identifier for the group. | 
| groupType | int32 | Group type, fixed at 2. | 
| ownerID | string | User ID of the group owner. | 
| membersID | array | List of member user IDs present at dissolution. | 
Example Response Package
Handling Outcome
After recording the group dissolution information, the App backend sends the response package.
{
    "actionCode": 0,
    "errCode": 0,
    "errMsg": "",
    "errDlt": "",
    "nextCode": 1
}
Response Package Field Descriptions
| Field | Value | Description | 
|---|---|---|
| actionCode | 0 | Indicates if the callback was executed correctly. 0means success. | 
| errCode | 0 | Custom error code, set to 0 to ignore callback results. | 
| errMsg | "An error message" | Simple error message for the custom error code. | 
| errDlt | "Detailed error information" | Detailed error information for the custom error code. | 
| nextCode | 1 | Next action code, set to 1to halt further action if actionCode is0. |