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