Delete User Account

To delete the user account by admin, you can use the below API.

info

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

HTTP request#

curl -X POST "https://{api-base-url}/api/v1/users/deleteUserAccount"
--header "accept: */*"
--header "Content-Type: application/json"
--header "Authorization: AuthToken"

Request Params#

ParamDataTypeRequiredDescription
feedbackStringNoUser should provide feedback about the application.
reasonStringYesUser should provide reason for account deletion.
userIdStringYesUserid of the user which you need to delete the user account.

Responses#

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

{
"status":200,
"data":"SUCCESS",
"message":"User account has been deleted successfully."
}

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 a Bad Request, an error message is returned

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