PropertyDefinitionCreate
| 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 | 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 |
default: false |
|
unit |
string |
max length 100 |
Example
Section titled “Example”{ "code": "weight", "name": "Weight", "type": "number", "isArray": true, "unit": "kg"}
