Skip to Content

Deleting a category

Delete category

Deleting a category is done by sending a DELETE request to the /categories/:id endpoint.

curl -X DELETE https://app.ignitevideo.cloud/api/categories/[CATEGORY_ID] \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \

Response

The response is the now deleted category object with a status message, or, if the category is not found, a 404 status code with a matching error message in the body is returned.

{ doc: { "id": "[CATEGORY_ID]", "title": "Category title", "slug": "category-slug" }, message: "Deleted successfully." }