Skip to Content

Creating a category

Creating a category is done by sending a POST request to the /categories endpoint.

Create category object

curl -X POST https://app.ignitevideo.cloud/api/categories \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title": "Your category title", "slug":"your-category-slug"}'

Response

The response is the newly created category object.

{ "id": "[CATEGORY_ID]", "title": "Your category title", "slug": "your-category-slug", }