Skip to main content
POST
/
data_import
/
members
Import Group Members
curl --request POST \
  --url https://{appId}.api-{region}.cometchat.io/v3/data_import/members \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{}'
{
  "data": {
    "guid1_member_uid2": {
      "success": true,
      "data": {
        "guid": "guid1",
        "uid": "uid2",
        "scope": "admin",
        "joinedAt": 1673421419
      }
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

For the complete error reference, see Error Guide.

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Body

application/json
members
object

Wrapper for the members.

Example:
{
  "guid1_member_uid2": {
    "memberId": "guid1_member_uid2",
    "uid": "uid2",
    "guid": "guid1",
    "joinedAt": "1673421419",
    "scope": "admin",
    "groupDetails": {
      "guid": "guid1",
      "name": "guid1",
      "type": "public",
      "owner": "uid1",
      "createdAt": "1673421419"
    },
    "userDetails": { "uid": "uid2", "name": "uid2" }
  }
}

Response

200 - application/json

Import Group Member(s)

data
object