Change password for specific user account
Allows changing the password for a specific user account identified by user ID, requiring the current password for verification to ensure authorized password changes and maintain account security.
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"
}
}