cURL
curl --request POST \ --url https://{appid}.api-{region}.cometchat.io/v3/data_import/members \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "members": { "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" } } } }'
{ "data": { "guid1_member_uid2": { "success": true, "data": { "guid": "guid1", "uid": "uid2", "scope": "admin", "joinedAt": 1673421419 } } } }
The CometChat group member import API allows customers to import their group members’ data into the CometChat systems.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Import Group Member(s)
The response is of type object.
object
Was this page helpful?