Update the requesting user’s account password
Allows the currently authenticated user to change their account password by providing their existing password for verification and a new password that meets security requirements for enhanced account protection.
Request
authorization
Authorization: Bearer <token>
application/json
{
"oldPassword": "CurrentSecureP@ss123",
"newPassword": "NewSecureP@ssw0rd!"
}
Responses
application/json
{
"status": true,
"data": {
"passwordChanged": "OK"
}
}
application/json
{
"status": false,
"error": {
"code": 5023,
"message": "Incorrect old password"
}
}
application/json
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
application/json
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}