Reset a user's password
Admin only. Sets a new password for one user without knowing the old one. The confirmation has to match, and the update is written to the audit trail as a reset.
POST
/api/v1/users/{userId}/reset-passwordAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
userIdstringrequiredThe user whose password is being reset.
Request body
requiredapplication/jsonnew_passwordstringrequiredconfirm_passwordstringrequiredResponses
200
Password reset
idstringrequiredbranch_idstringrequiredemailstringrequiredfull_namestringrequiredphonestringrequiredrolestringrequiredis_activebooleanrequiredlast_login_atstring | nullrequiredcreated_atstringrequiredupdated_atstringrequiredbranch_namestring | nullrequired400
Password must contain at least 8 characters, or the confirmation does not match
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin
detailstringrequired404
User not found
detailstringrequired