NewCharacteristicInput
input type
Create-input for a Characteristic. The tenant (org group) is derived SERVER-SIDE from the principal — NEVER supplied here. STRICT invariants: pattern-type requires a compiling grammar.pattern; number/date take NO grammar; unit only on number, naming a canned UoM.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — the merchant code when given, else 'Characteristic'; when supplied it must be non-blank. |
valueType | CharacteristicValueType CharacteristicValueType! | yes | The value type — immutable after birth. |
grammar | CharacteristicGrammarInput | no | No further notes. |
unit | String | no | A canned-UoM unit code (number-typed characteristics only). |
code | String | no | No further notes. |