curl --request PATCH \
--url https://api.example.com/products/:id \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"stock": 123,
"price": 123,
"categoriesID": 123
}
'{
"error": true,
"msg": "<string>"
}Update an existing product with partial data
curl --request PATCH \
--url https://api.example.com/products/:id \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"stock": 123,
"price": 123,
"categoriesID": 123
}
'{
"error": true,
"msg": "<string>"
}This endpoint updates a product identified by its UUID. All fields are optional - you only need to include the fields you want to update.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/andreguti9190/Sistema-de-gestion-de-ventas--Nodejs/llms.txt
Use this file to discover all available pages before exploring further.
{
"name": "Coca cola",
"description": "Bebida gasificada de 2ltr",
"stock": 40,
"price": 3000,
"categoriesID": 1
}
{
"stock": 50,
"price": 3200
}
{
"error": false,
"msg": "product modify sucessfully"
}
{
"error": true,
"msg": "the id is invalid"
}
{
"error": true,
"msg": "request body is empty"
}
{
"error": true,
"msg": "the data format is invalid"
}
{
"error": true,
"msg": "Error message describing the issue"
}
validateProductSoft) which only validates fields that are provided: