Skip to main content
POST
/
api
/
user
/
reset-password
Reset a user password (admin)
curl --request POST \
  --url https://your-instance.example.com/api/user/reset-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "64ee9a8b1e7f2a0011223399",
  "newPassword": "NewStr0ng!Pass"
}
'
{
  "message": "Password reset successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
userId
string
required

ObjectId of the user whose password is being reset.

newPassword
string
required

Replacement password (plain text over TLS); hashed before storage and immediately invalidates the previous credential.

Response

Password reset successfully

Generic single-message success envelope used for reset-password / reorder / etc.

message
string
required