POST
/
data_import
/
groups
Import Groups
curl --request POST \
  --url https://{appid}.api-{region}.cometchat.io/v3/data_import/groups \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "groups": {
    "guid1": {
      "guid": "guid1",
      "name": "guid1",
      "createdAt": "1673421419",
      "type": "public",
      "owner": "superhero1",
      "groupOwnerDetails": {
        "uid": "superhero1",
        "name": "superhero1"
      }
    }
  }
}'
{
  "data": {
    "guid1": {
      "success": true,
      "data": {
        "guid": "guid1",
        "name": "guid1",
        "type": "public",
        "conversationId": "group_guid1",
        "createdAt": 1673421419,
        "owner": "superhero1"
      }
    }
  }
}

Authorizations

apikey
string
header
required

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

Body

application/json

Response

200 - application/json

Import Group(s)

The response is of type object.