Creates a category. Set its status, optionally a name, and optionally a parent to nest it under an existing category, plus the products to classify under it.
Headers
Name
Type
Required
Description
Flowkiwi-Locale
string
-
Specifies the locale for properties that support localization. If not provided, the default locale will be used.
Request body
Property
Type
Required
Description
attributes
string[]
-
A list of AttributeDefinition IRIs attached to this category. Requires the categories:read scope. Returned empty when the scope is missing.
children
string[]
-
A list of direct child Category IRIs nested under this category. Requires the categories:read scope. Returned empty when the scope is missing.
name
string | null
-
The name of the category.
parent
string | null
-
The parent Category to which this category belongs, if any. Requires the categories:read scope. Returned null when the scope is missing.
products
string[]
-
List of products associated with the category. Requires the products:read scope. Returned empty when the scope is missing.
The attribute definitions attached to this category. Requires the categories:read scope. Returned empty when the scope is missing.
children
array
-
A list of direct child Category, each one representing a category under this one. Serialized as IRI strings by default; pass ?expand=children to embed direct children (one level only). Requires the categories:read scope. Returned empty when the scope is missing.
createdAt
string
-
Creation date of the resource (ISO 8601 format).
id
string
-
The resource's unique identifier (UUID).
name
string | null
-
This property supports translations.
The name of the category.
parent
string | Category | null
-
The parent Category to which this category belongs, if any. Serialized as IRI string by default; pass ?expand=parent to embed the direct parent (one level only). Requires the categories:read scope. Returned null when the scope is missing.
products
string[]
-
List of products associated with the category. Requires the products:read scope. Returned empty when the scope is missing.
Last modification date of the resource (ISO 8601 format).
Property
Type
Required
Description
attributes
string[]
-
The attribute definitions attached to this category. Requires the categories:read scope. Returned empty when the scope is missing.
children
array
-
A list of direct child Category, each one representing a category under this one. Serialized as IRI strings by default; pass ?expand=children to embed direct children (one level only). Requires the categories:read scope. Returned empty when the scope is missing.
createdAt
string
-
Creation date of the resource (ISO 8601 format).
id
string
-
The resource's unique identifier (UUID).
name
string | null
-
This property supports translations.
The name of the category.
parent
string | Category | null
-
The parent Category to which this category belongs, if any. Serialized as IRI string by default; pass ?expand=parent to embed the direct parent (one level only). Requires the categories:read scope. Returned null when the scope is missing.
products
string[]
-
List of products associated with the category. Requires the products:read scope. Returned empty when the scope is missing.