Eine Kategorie erstellen
Eine Kategorie wird durch Senden einer POST-Anfrage an den /categories Endpoint erstellt.
Kategorie-Objekt erstellen
CURL
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"}'Antwort
Die Antwort ist das neu erstellte Kategorie-Objekt.
{
"id": "[CATEGORY_ID]",
"title": "Your category title",
"slug": "your-category-slug",
}