curl -X POST http://localhost:3000/users/password \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"oldPassword": "currentPassword123",
"newPassword": "newSecurePassword456"
}'
{
"message": "Password changed successfully"
}
Change the authenticated user’s password
curl -X POST http://localhost:3000/users/password \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"oldPassword": "currentPassword123",
"newPassword": "newSecurePassword456"
}'
{
"message": "Password changed successfully"
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/4rt21/backend-proyecto/llms.txt
Use this file to discover all available pages before exploring further.
Bearer <your_access_token>curl -X POST http://localhost:3000/users/password \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"oldPassword": "currentPassword123",
"newPassword": "newSecurePassword456"
}'
{
"message": "Password changed successfully"
}