User
Reset a user password (admin)
Admin endpoint: sets a new password for the specified user. The previous password is invalidated. The caller must be ADMIN or SUPERADMIN.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/user/reset-password" \ -H "Content-Type: application/json" \ -d '{ "userId": "64ee9a8b1e7f2a0011223399", "newPassword": "NewStr0ng!Pass" }'{ "message": "Password reset successfully"}