Update an existing category
curl -X PUT https://api.example.com/categories/1 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Consumer Electronics"
}'
{
"id": "1",
"name": "Consumer Electronics",
"createdAt": "2024-01-15T10:30:00Z"
}
This endpoint updates an existing category by ID. Requires authentication and admin role.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GioTaipe/E-commerce/llms.txt
Use this file to discover all available pages before exploring further.
curl -X PUT https://api.example.com/categories/1 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Consumer Electronics"
}'
{
"id": "1",
"name": "Consumer Electronics",
"createdAt": "2024-01-15T10:30:00Z"
}
{
"message": "Unauthorized"
}
curl -X PUT https://api.example.com/categories/1 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Consumer Electronics"
}'
{
"id": "1",
"name": "Consumer Electronics",
"createdAt": "2024-01-15T10:30:00Z"
}