ZRM Docs
Domain Model

Product Category

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
namestringYesName
slugstringYesSlug
descriptionstringNoDescription
attributeSchemaobject[]YesAttribute schema
parentIdstringNoID of the associated parent
sortOrderintegerYesSort order
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

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

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
namestringNoName
slugstringNoSlug
descriptionstringNoDescription
attributeSchemaobject[]No[]Attribute schema
parentIdstringNoID of the associated parent
sortOrderintegerNo0Sort order

On this page