Platform APIEnterprise
Remove conversations from groups
Remove selected conversations from one or more conversation groups owned by the same user.
HTTP request
POST {API_ADDRESS}/conversation/remove_conversations_from_groupsRequest example
curl --request POST "${API_ADDRESS}/conversation/remove_conversations_from_groups" \
--header "Content-Type: application/json; charset=utf-8" \
--header "operationID: ${OPERATION_ID}" --header "token: ${TOKEN}" \
--data-raw '{"ownerUserID":"user_001","conversationIDs":["si_user_001_user_002"],"conversationGroupIDs":["conversation_group_001"]}'Request body
| Parameter | Required | Type | Description |
|---|---|---|---|
| ownerUserID | Yes | string | User who owns the conversations and groups. |
| conversationIDs | Yes | string[] | Conversation IDs to remove. |
| conversationGroupIDs | Yes | string[] | Source group IDs. |
Response
The common response has errCode: 0 when the memberships were updated successfully.
Errors
See Error codes.
Permissions and limits
- Available only in OpenIM Enterprise.
- Removing a conversation from a group does not delete the conversation.
Related pages
Was this page helpful?