Update user password
PUT/users/:username/password
Updates a user's password. Users can only change their own password unless they have admin role. Requires the current password to verify identity for non-admin users. Password must meet strength requirements:
- Minimum 8 characters
- At least one uppercase letter
- At least one digit
- At least one special character (!@#$%^&*(),.?":{}|<>)
If user changes their own password, a new JWT cookie is automatically issued.
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- 422
Successful Response
Bad Request - Current password required or password doesn't meet requirements
Unauthorized - Current password is incorrect
Forbidden - Viewers can only update their own password
Not Found - User not found
Validation Error