Skip to content

POST   /auth/admin-force-set-password

Force set password for user (SuperAdmin only)

Allows SuperAdmin users to set a password for any user without requiring their old password

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Request Body

{
"email": "string",
"newPassword": "string"
}

Try it out

Loading...

Output:

Responses

Description

Password set successfully

{
"message": "Password changed successfully for user@example.com"
}

References

#/components/schemas/Error

type: object
properties:
error:
type: string
description: Error message
status:
type: integer
description: HTTP status code
message:
type: string
description: Detailed error message
description: Error response object
required:
- error

Route Source Code

Check out the source code for this route entrypoint here: /auth/admin-force-set-password/route.ts

Or the swagger.yaml spec this documentation was generated from: /auth/admin-force-set-password/swagger.yaml