Skip to main content

Create Category

POST 

/api/categories

Create a new product category.

Authentication: Requires Bearer token.

Request body fields:

  • name (required) — category name; must be unique within the same parent
  • parent_id (optional) — parent category ID; null creates a root category
  • attribute_groups (optional) — array of attribute group IDs to link
  • attributes (optional) — array of attribute IDs to link

Request

Responses

Successful response