Parameters
JSON body
Request body
application/jsonkeystringRequiredMachine key (unique per organisation). Used as the JSON key on every product carrying a value.
materialtype"text" | "textarea" | "number" | "boolean"RequiredInput type rendered in admin.
textlabelstringRequiredDisplay label.
MaterialhelperTextstringOptionalSmall helper text shown below the input.
placeholderstringOptionalPlaceholder text.
onlyCategoryCodestringOptionalIf set, definition applies only to products whose main category matches this code. Omit for global (org-wide).
t-shirtsrequiredbooleanOptionalWhether the value is required. Defaults to false.
activebooleanOptionalWhether the definition is active. Defaults to true.
validationPatternstringOptionalRegex string validated on submit (server-side check).