🔐 Authentication
Change current password
The Change Password API allows logged-in users to update their current password by providing the old password as a verification step.
This API provides a secure mechanism for users to change their passwords within the application.
By accessing this endpoint and providing the old password, users can initiate the password change process and set a new password of their choice.
post/users/change-password
Request
- Base URLhttps://api.freeapi.app/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"newPassword": "test@123",
"oldPassword": "new@123"
}Response
Change current password
Example response
{
"message": "Password changed successfully",
"statusCode": 200,
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.