updateUserPassword
@Patch(value = "update-password/")
Handles POST users/update-password/.
Validates the payload and delegates password update workflow to UpdateUserPassword, including old-password verification and account lock checks.
Response mapping:
200 OKwhen password is updated400 Bad Requestfor invalid payload or wrong old password401 Unauthorizedwhen user is currently locked404 Not Foundwhen user or credentials cannot be found
Return
An HTTP response representing the update result.
Parameters
request
Password update payload containing user, old password, and new password.