The unique identifier of the category to delete.Validation Rules:
Must be an integer
Must be greater than or equal to 1
Foreign Key Constraint: You cannot delete a category that has products associated with it. You must first delete or reassign all products in this category before the category can be deleted.
Returned when attempting to delete a category that has products associated with it. The response includes the IDs of products that must be handled first.
{ "error": true, "msg": "there are products with this category", "productList": [ { "id": "1373fe00-14e4-11f1-9fcd-2418c6c96a00" } ]}
Before deleting a category, you can either:
Delete all products in that category first
Update products to use a different category
The system will return all product IDs that need to be handled