Skip to main content
POST
Create category

Authorizations

Authorization
string
header
required

Sign in to the admin dashboard and use the resulting ID token for a store and operation you can access. The authenticated dashboard cookie is accepted when the Authorization header is absent. Missing or insufficient access returns 401.

Body

application/json
name
string
required
Maximum string length: 128
description
string | null
active
boolean
default:true
parent_category_id
string | null
slug
string
Maximum string length: 128
Pattern: ^(?!-)([0-9a-zA-Z\s-]+)(?<!-)$
auto_assign_products
boolean
default:false
assign_products_condition
CategoryAssignmentCondition · object | null

Response

OK

message
string
success
boolean
content
object