curl --request PATCH \
--url https://api.example.com/api/user \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"name": "<string>",
"email": "<string>"
}
'{
"success": true,
"message": "User updated successfully"
}
Updates the authenticated user’s profile information (name and/or email).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 \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--header 'x-api-key: your_api_key_here' \
--data '{
"name": "Jane Doe",
"email": "jane.doe@example.com"
}'
{
"success": true,
"message": "User updated successfully"
}
{
"error": "Access Denied"
}
name and email fields are optional, but at least one must be providedcurl --request PATCH \
--url https://api.example.com/api/user \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"name": "<string>",
"email": "<string>"
}
'{
"success": true,
"message": "User updated successfully"
}