Skip to main content

Reset Password

POST 

/users/reset-password/:userId

Reset Password allows an authorized user to reset the password for a specific user in ANSCER ANYA. This request takes the user's unique ID as a parameter and requires the authorization password (authPassword) of the authorized user who has access to reset passwords. A new password (newPassword) for the target user is provided in the request body, and this request resets the user's password.

Request

Path Parameters

    userId stringrequired

    The ID of the user to reset password.

Body

required
    authPassword stringrequired

    Possible values: >= 6 characters and <= 255 characters

    newPassword stringrequired

    Possible values: >= 6 characters and <= 255 characters

Responses

Password reset successfully.

Schema
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    email email

    Possible values: >= 5 characters and <= 255 characters

    isActive boolean
    role userRoles

    Possible values: [developer, admin, user]

    createdBy object

    The user who created this user

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this user

    _id string
    name string
    email email
    createdAt date-time

    The date and time this user was created

    updatedAt date-time

    The date and time this user was last updated

Loading...