Change password
This endpoint allows the authenticated user to change their password.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
oldPasswordstringRequiredExample:
fsdfsfs43543newPasswordstringRequiredExample:
Picco123@Responses
200
Password successfully changed
*/*
statusintegerOptional
messagestringOptional
400
Bad Request, invalid old password or other issues
*/*
put/auth/change-password
PUT /backend/api/auth/change-password HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: */*
Accept: */*
Content-Length: 56
{
"oldPassword": "fsdfsfs43543",
"newPassword": "Picco123@"
}{
"status": 1,
"message": "Password successfully changed"
}
