Browse Platform API
Platform APIEnterprise

Add conversations to groups

Copy

Add selected conversations to one or more conversation groups owned by the same user.

HTTP request

POST {API_ADDRESS}/conversation/add_conversations_to_groups

Request 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

ParameterRequiredTypeDescription
ownerUserIDYesstringUser who owns the conversations and groups.
conversationIDsYesstring[]Conversation IDs to add.
conversationGroupIDsYesstring[]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.