Platform APIEnterprise
Add conversations to groups
Add selected conversations to one or more conversation groups owned by the same user.
HTTP request
POST {API_ADDRESS}/conversation/add_conversations_to_groupsRequest example
curl --request POST "${API_ADDRESS}/conversation/add_conversations_to_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 add. |
| conversationGroupIDs | Yes | string[] | Destination 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.
- Request array limits follow the delivered server version.
Related pages
Was this page helpful?