post https://{appid}.api-{region}.cometchat.io/v3/groups
Creates a group.
GUIDs would be automatically converted to lowercase while creating a group.
For a detailed description of the Group properties please visit here
Request sample:
POST /groups HTTP/1.1
Content-type: application/json
Accept: application/json
{
"guid": "string",
"name": "string",
"type": "string",
"password": "string",
"icon": "URL string",
"description": "string"
"metadata": {
"any key": "value pair",
},
"owner": "string",
"tags":["array of string"],
"members": {
"admins": ["array of strings"],
"moderators": ["array of strings"],
"participants": ["array of strings"],
"usersToBan": ["array of strings"]
}
}