curl --request DELETE \
--url https://api.example.com/categories/:id{
"error": true,
"msg": "<string>",
"productList": [
{
"id": "<string>"
}
]
}Delete a category by its ID
curl --request DELETE \
--url https://api.example.com/categories/:id{
"error": true,
"msg": "<string>",
"productList": [
{
"id": "<string>"
}
]
}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.
DELETE /categories/:id
Show Product Reference Object
{
"error": false,
"msg": "Categorie deleted successfully"
}
{
"error": true,
"msg": "id is invalid"
}
{
"error": true,
"msg": "there are products with this category",
"productList": [
{
"id": "1373fe00-14e4-11f1-9fcd-2418c6c96a00"
}
]
}