Reset Password

API to reset password of MirrorFly account. Only administrators have the authority to reset user passwords. Admins cannot reset passwords for other admins for security reasons. If you have any concerns, please contact MirrorFly support.

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

HTTP request#

curl --location --request POST '{api-base-url}/api/v1/users/resetPassword?userId=xxxx&deviceId=xxxx&deviceType=xxxx' \
--header 'accept: */*' \
--header 'Authorization: AuthToken'

Request Params#

ParamDataTypeRequiredDescription
userIdStringYesUser Id whose password needs to be reset
deviceIdStringNoDevice Id to fetch the user details
deviceTypeStringYesDevice Type to validate the device. Must be android/ios/web

Responses#

If successful, this action returns a new user password in the response body.

{
"status": 200,
"data": {
"password": "xxxxxxxxxxx"
},
"message": "The password has been successfully reset"
}

Error#

In the case of an error, an error object like below is returned. When the token passed in Headers is not given or expired

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

In the case of an admin tries to reset another admin password

{
"status": 401,
"message": "Operation restricted"
}

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

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