Skip to main content

Create Category

POST 

/api/categories

Create a new product category.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

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

Requires permission: categories.create

Request

Responses

Created

Response Headers
    Content-Type