Space Docs
Domain Model

Product Category

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
namestringYes—Name
slugstringYes—Slug
descriptionunknownYes—Description
avatarS3KeyunknownYes—Avatar s3key
attributeSchemaobject[]Yes—Attribute schema
parentIdunknownYes—ID of the associated parent
sortOrderintegerYes—Sort order
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

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

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
namestringNo—Name
slugstringNo—Slug
descriptionunknownNo—Description
attributeSchemaobject[]No—Attribute schema
parentIdunknownNo—ID of the associated parent
sortOrderintegerNo—Sort order

On this page