ZRM Docs
API ReferenceProduct Category

productCategory.create

Type: Mutation · Auth: Workspace admin

Input

FieldTypeRequiredDefaultDescription
namestringYesName
slugstringYesSlug
descriptionstringNoDescription
attributeSchemaobject[]Yes[]Attribute schema
parentIdstringNoID of the associated parent
sortOrderintegerYes0Sort order
workspaceIdstringNoID of the associated workspace
visibilityModeenum(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"
}

On this page