Use this endpoint when you're logged in and want to change your password for security or personal reasons.
How it works:
1️⃣ Submit your current password – This is required to confirm your identity.
2️⃣ Provide a new password – Choose a secure new password to replace the old one.
3️⃣ Receive confirmation – If the current password is correct and the new password is valid, the update will be successful.
Authorization: Bearer YOUR_TOKEN
Expected Behavior:
- On success, the system will update the password and return a confirmation message.
- If the request is unauthorized or invalid, the system will respond with an error message.