Space Docs
Domain Model

Product Category

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
namestringYesName
slugstringYesSlug
descriptionunknownYesDescription
avatarS3KeyunknownYesAvatar s3key
attributeSchemaobject[]YesAttribute schema
parentIdunknownYesID of the associated parent
sortOrderintegerYesSort order
workspaceIdstringYesID of the associated workspace
visibilityModeunknownYesVisibility 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
visibilityModeunknownNoVisibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
namestringNoName
slugstringNoSlug
descriptionunknownNoDescription
attributeSchemaobject[]NoAttribute schema
parentIdunknownNoID of the associated parent
sortOrderintegerNoSort order

On this page