Skip to main content

Delete a Specific Category

This endpoint deletes a specific category identified by {id}.

info

This operation requires authentication and admin role.

HTTP Request

DELETE /api/v2/category/{id}/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this category

Example Request

const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization: Bearer <token>'
};
fetch('/api/v2/category/{id}/',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});


Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone