Skip to Content

Créer une catégorie

Pour créer une catégorie, envoie une requête POST à l’endpoint /categories.

Créer un objet catégorie

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"}'

Réponse

La réponse est le objet catégorie nouvellement créé.

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