Make admin

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


{api-base-url} can be obtained from the MirrorFly console.

HTTP request#

curl -X POST "https://{api-base-url}/api/v1/group/make/admin"
-H "accept: */*"
-H "Authorization: xxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/json"
-d "{ \"groupId\": \"samplegroupId\", \"groupMembers\": [\"77xxxxxx22\"] }"

Request Params#

groupIdStringYesId of the group
groupMembersArray of stringsYesList of members(UserIds) to be made admin to this group


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

"status": 200,
"data": {
"groupId": "samplegroupId", // String - group id
"groupName": "samplegroupname"// String - 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"