AlmondTill/G3N API

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

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Characteristic'; when supplied it must be non-blank.
valueTypeCharacteristicValueType CharacteristicValueType!yesThe value type — immutable after birth.
grammarCharacteristicGrammarInputnoNo further notes.
unitStringnoA canned-UoM unit code (number-typed characteristics only).
codeStringnoNo further notes.

Used by