updateUserPassword

@Patch(value = "update-password/")
open override fun updateUserPassword(@Body request: UpdateUserPasswordRequest): HttpResponse<UpdateUserPasswordResponse>

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 OK when password is updated

  • 400 Bad Request for invalid payload or wrong old password

  • 401 Unauthorized when user is currently locked

  • 404 Not Found when 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.