Skip to main content
POST
/
auth
/
change-password
Sends a new password to change user's old password.
curl --request POST \
  --url https://api.example.com/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "countryAbbreviation": "<string>",
  "phoneNumber": "<string>",
  "newPassword": "<string>"
}
'
{
  "success": true,
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
countryAbbreviation
string
required
Minimum string length: 1
phoneNumber
string
required
Minimum string length: 1
newPassword
string
required
Minimum string length: 1

Response

Success

success
boolean
data
unknown