Skip to content

PropertyDefinition

Field Type Required Description
code PropertyCode yes Code of the product property this definition applies to (matches ProductProperties[].code).
max length 255 · pattern: ^[^.]*$
name string yes Name of the property definition.
max length 255
type PropertyDefinitionType yes Type of the property. It is immutable once the property definition is created.
one of: string, number, boolean
isArray boolean yes Whether the property holds an array of values of the given type.
unit `null string`
{
"code": "weight",
"name": "Weight",
"type": "number",
"isArray": false,
"unit": "kg"
}