Space Docs
API ReferenceProduct Category

productCategory.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
namestringYes—Name
slugstringYes—Slug
descriptionstringNo—Description
attributeSchemaobject[]Yes[]Attribute schema
parentIdstringNo—ID of the associated parent
sortOrderintegerYes0Sort order
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Example

{
  "name": "Example Name",
  "slug": "example",
  "description": "A description",
  "attributeSchema": [],
  "parentId": "550e8400-e29b-41d4-a716-446655440000",
  "sortOrder": 0
}

On this page