Free Palestine 🇵🇸Stand for humanity! Palestine has a right to defend itself. Together, we can put an end to the Gaza genocide. Let's unite to #SAVEGAZA and ensure that every life in this region has access to the most basic necessities.

APIMockAPIMock

Change Password

Change the password of the user.

PUT
/auth/password
/auth/password

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

Auth Token from Login API

In: header

Request Body

application/jsonRequired

oldPassword
Required
string

Old password of the user.

newPassword
Required
string

New password of the user.

confirmPassword
Required
string

Confirm password of the user.

curl -X PUT "https://apimock.lazycatlabs.com/v1/api/auth/password" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "oldPassword": "pass123",
    "newPassword": "new_pass123",
    "confirmPassword": "new_pass123"
  }'

Success

{
  "diagnostic": {
    "status": "200",
    "message": "Success"
  }
}