API ReferenceProduct Category
productCategory.create
Type: Mutation · Auth: Workspace admin
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | Name |
| slug | string | Yes | — | Slug |
| description | string | No | — | Description |
| attributeSchema | object[] | Yes | [] | Attribute schema |
| parentId | string | No | — | ID of the associated parent |
| sortOrder | integer | Yes | 0 | Sort order |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"name": "Example Name",
"slug": "example",
"description": "A description",
"attributeSchema": [],
"parentId": "550e8400-e29b-41d4-a716-446655440000",
"sortOrder": 0,
"visibilityMode": "global"
}