Make admin

To make one or more group members as admin use below API.


{your-domain-name} can be obtained from the MirrorFly console.

HTTP request#

curl -X POST "https://{your-domain-name}/api/v1/group/make/admin"
-H "accept: */*"
-H "Authorization: xxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/json"
-d "{ \"groupId\": \"xxxxxxx\", \"groupMembers\": [\"xxxxxxxxx\"] }"

Request Params#

groupIdStringYesId of the group
groupMembersArray of stringsYesList of members to be made admin in this group


If successful, this action creates a group and adds provided members to it.

"status": 200,
"data": {
"groupId": "Sample group name"
"message": "Make admin successfully"


In the case of an error, an error object like below is returned.

When the token passed in Headers is expired

"status": 401,
"message": "Token Expired"

In the case of a Bad Request, an error message is returned

"status": 400,
"message": "Error Message"