curl --request PUT \
--url https://api.example.com/api/product/inventory/update/{product_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"category": "<string>",
"barcode": "<string>"
}
'{
"message": "<string>",
"productId": "<string>",
"name": "<string>"
}Update an existing product in the inventory
curl --request PUT \
--url https://api.example.com/api/product/inventory/update/{product_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"category": "<string>",
"barcode": "<string>"
}
'{
"message": "<string>",
"productId": "<string>",
"name": "<string>"
}PUT /api/product/inventory/update/{product_id}
Authorization: Bearer <your_access_token>
curl -X PUT https://api.expireeye.com/api/product/inventory/update/550e8400-e29b-41d4-a716-446655440000 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"name": "Organic Whole Milk",
"category": "Dairy Products",
"barcode": "123456789012"
}'
{
"message": "Product updated successfully",
"productId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Organic Whole Milk"
}
{
"detail": "Product not found"
}