Skip to main content
POST
/
api
/
auth
/
change-password
Change Password
curl --request POST \
  --url https://api.example.com/api/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "current_password": "<string>",
  "new_password": "<string>"
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Change password request model

current_password
string
required
new_password
string
required

Response

Successful Response

Change password response model

success
boolean
required
message
string
required