Set New Password

PATCH /user/set-new-password/

Use the PATCH /user/set-new-password/ endpoint to allow the user/mechanic to set a new password by providing their email, OTP code, and new password.


Parameters

Name

Description

data *

Object (Body): The data required to update the password.

email *

String: The user's email address.

otp_code *

String: The OTP code received by the user.

password *

String: The new password that the user wants to set.


Example Request Body

{
  "email": "user@example.com",
  "otp_code": "123456",
  "password": "newPassword123"
}

Responses

Code

Description

Example Value

200

The password was successfully updated.

Model: SetNewPassword

email (string): The user's email

"user@example.com"

otp_code (string): The OTP code

"123456"

password (string): The new password

"newPassword123"

Last updated