Das Kategorieobjekt
Das Kategorieobjekt ist ein JSON-Objekt mit folgenden Eigenschaften:
{
"id": string,
"title": string,
"slug": string,
"description": string,
"workspace": string,
"parent": object | string, // absent on a root category
"path": [
{
"id": string,
"doc": string, // category id this crumb points at; sometimes absent on create
"url": string,
"label": string
}
],
"pathLabel": string, // breadcrumb titles joined with " / "
"videoCount": number,
"videoCountWithSubcategories": number,
"createdAt": Date,
"updatedAt": Date
}parent ist die übergeordnete Kategorie. Mit der Standard-Tiefe ist es ein Kategorieobjekt. Mit depth=0 ist es eine Id. Bei einer Root-Kategorie fehlt parent. path ist der Breadcrumb. pathLabel verbindet diese Titel mit /. videoCount ist die Anzahl der Videos in dieser Kategorie. videoCountWithSubcategories schließt Videos in untergeordneten Kategorien ein.
Beschreibbare Felder sind title (max. 100), slug, description (max. 2000) und parent (eine Kategorie-Id). Wenn du eine Kategorie ohne slug erstellst, wird es aus title erzeugt.