Change password
POST/v1/settings/change-password
Change password
The change password endpoint allows users to update their account password. It requires the user's current password, the new password, and a confirmation of the new password. This endpoint validates that the new password matches its confirmation and checks the current password against the stored hash. Upon successful validation, it updates the user's password in the database and logs the activity. Responses include success confirmation, errors for mismatched passwords, invalid credentials, or internal server issues.
Request
- application/json
Body
required
current_password stringrequired
new_password stringrequired
new_password_check stringrequired
Responses
- 200
- 400
- 404
- 500
Password changed
Mismatching passwords
- text/plain
- Schema
Schema
string
Invalid credentials or auth header
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...