Update group

To update a group with latest details use below API.

info

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

HTTP request#

curl -X PUT "https://{your-domain-name}/api/v1/group/group"
-H "accept: */*"
-H "Authorization: xxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/json"
-d "{ \"groupId\": \"xxxxxxx\", \"groupImageUrl\": \"xxxxxxx\", \"groupName\": \"xxxxxxxxx\", \"mobileNumber\": \"919612345678\", \"email\": \"sampleemail@gmail.com\", \"status\": \"1\"}"

Request Params#

ParamDataTypeRequiredDescription
groupIdStringYesId of the group
groupImageUrlStringNoGroup profile picture url
groupNameStringNoA name for this group
mobileNumberStringNoMobile number of the member
emailStringNoemail address of the member
statusStringNostatus

Responses#

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

{
"status": 200,
"data": {
"groupId": "Sample group name"
},
"message": "Group updated successfully"
}

Error#

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"
}