Create a group
Create a group with required members to start a group conversation using below API.
info
{api-base-url}
can be obtained from the MirrorFly console.
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
groupName | String | Yes | A name for this group |
groupImageUrl | String | No | Group profile picture url |
groupMembers | Array of objects | Yes | List of members to be added to this group |
groupMembers.isAdmin | boolean | No | Whether to add this member as admin default value is false |
groupMembers.userId | String | Yes | UserId of the member to be added |
licenseKey | String | Yes | Licensekey for this group |
metaData | String | No | JSON-formatted string to which you would like to add metadata. Can add three key-value pairs, where the values can be either numbers or strings. "metaData":{"key1":"value1","key2":"value2","key3":"value3"} |
#
ResponsesIf successful, this action creates a group and adds provided members to it.
#
ErrorIn the case of an error, an error object like below is returned.
When the token passed in Headers is expired
In the case of a Bad Request, an error message is returned