curl --request PATCH \
--url https://api.example.com/api/user/password \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"oldPassword": "<string>",
"newPassword": "<string>"
}
'{
"success": true,
"message": "Password updated successfully"
}
Updates the authenticated user’s password. Requires the current password for verification.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/memoowi/e-comm-api-demo-2/llms.txt
Use this file to discover all available pages before exploring further.
Bearer <token>application/jsoncurl --request PATCH \
--url https://api.example.com/api/user/password \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--header 'x-api-key: your_api_key_here' \
--data '{
"oldPassword": "currentPassword123",
"newPassword": "newSecurePassword456"
}'
{
"success": true,
"message": "Password updated successfully"
}
{
"success": false,
"message": "New password cannot be the same as the old password"
}
oldPassword and newPassword fields are requiredcurl --request PATCH \
--url https://api.example.com/api/user/password \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"oldPassword": "<string>",
"newPassword": "<string>"
}
'{
"success": true,
"message": "Password updated successfully"
}