Change user password

POST /auth/change-password

Allow the user to change his password. Requires current password for verification and password confirmation to ensure accuracy.

application/json

Body Required

  • old_password string(password) Required

    Current password

  • password string(password) Required

    New password

  • password_2 string(password) Required

    New password confirmation

Responses

  • 200

    Password changed

  • 400

    Invalid password or inactive user

POST /auth/change-password
curl \
 --request POST 'http://api.example.com/auth/change-password' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"old_password":"string","password":"string","password_2":"string"}'
Request examples
{
  "old_password": "string",
  "password": "string",
  "password_2": "string"
}