Deletes the Category.
URL : /api/v{:apiVersion}/categories/:id
URL Parameters : id=[integer]
Method : DELETE
Authorization : Bearer Token
Permissions required : User must have the role of admin
.
Code : 204 NO CONTENT
Code : 404 NOT FOUND
Content :
{
"errors": [
{
"code": "NotFoundError",
"description": "Category not found for parameters {id=111}."
}
]
}
Code : 409 CONFLICT
Content :
{
"errors": [
{
"code": "ConflictError",
"description": "FOREIGN KEY constraint: The primary key of this Category is using as a foreign key in 'Products' table."
}
]
}
Code : 403 FORBIDDEN