Sets the password of the user given by userId or email. Returns 404 for an unknown user. Super admin only.
POST
/admin/user/set-password
curl \
--request POST 'http://api.example.com/admin/user/set-password' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"email": "string",
"userId": "string",
"password": "string"
}'
Request examples
{
"email": "string",
"userId": "string",
"password": "string"
}
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}