Skip to main content
POST
/
auth
/
setpassword
Set Password
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/setpassword \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "testpassword"
}'
{
  "message": "Password set successfully"
}
/auth/setpassword Description:
The /auth/setpassword endpoint allows users to set after they have verified their account.
Method:
POST
Request Payload:
ParameterTypeDescription
passwordstringThe new password to be set.
See example response from the examples below

Authentication

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

Request Body

Request Schema

FieldTypeRequiredDescription
passwordstringThe new password to be set

Responses

✅ 200 - success

⚠️ 400 - has password

⚠️ 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}"

Body

application/json
password
string
required

The new password to be set

Example:

"testpassword"

Response

success

message
string
I