cURL
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" } } } }
The CometChat group import API allows customers to import their groups’ data into the CometChat systems.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Import Group(s)
The response is of type object.
object
Was this page helpful?