Skip to main content
PATCH
/
auth
/
resetpassword
Reset password
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/resetpassword \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "new_password": "<string>"
}'
{
  "message": "Password Reset Successful"
}
/auth/resetpassword Description:
The /auth/resetpassword endpoint allows users to reset their password by providing a verification code along with the new password. The verification code is typically sent to the userโ€™s email after initiating the password reset process.
Method:
PATCH
Query Parameter:
ParameterTypeDescription
codestringThe verification code sent to the userโ€™s email.
Request Payload:
ParameterTypeDescription
emailstringThe email address of the user.
new_passwordstringThe new password to be set.
Request Example: Requires bearer token from response in /forgotpassword request
See example of the responses below

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Query Parameters

ParameterTypeInRequiredDescription
codestringqueryโŒThe verification code sent to the userโ€™s email

Request Body

Request Schema

FieldTypeRequiredDescription
emailstringโœ…The email address of the user
new_passwordstringโœ…The new password to be set

Responses

โœ… 200 - Success - If Logged In

โš ๏ธ 401 - Unauthorized

โš ๏ธ 404 - Not Found

โŒ 500 - Internal Server Error

Tags

Auth

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

code
string

The verification code sent to the user's email

Body

application/json
email
string<email>
required

The email address of the user

new_password
string
required

The new password to be set

Response

Success - If Logged In

message
string
โŒ˜I