AlmondTill/G3N API

NewDecorationInput

input type

Create-input for a Decoration. The tenant (org group) is derived SERVER-SIDE from the principal; the attachment target (attachedToType + attachedToId) is tenant-scoped server-side and must be active; purpose must name the canned registry and be text-kind; purpose and the attachment are IMMUTABLE after birth.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Decoration'; when supplied it must be non-blank.
purposeString String!yesThe canned purpose key. Immutable after birth.
localeString String!yesThe content locale — canonical BCP-47 core shape (case-canonical, STRICT).
ordinalIntnoOptional importance position (0..1000000; lower = more important) — defaults to 0.
textString String!yesThe inline text content (1..4096 chars).
attachedToTypeAttachableType AttachableType!yesThe owning construct type (the attachable allowlist).
attachedToIdID ID!yesThe owning construct id — tenant-scoped server-side, must be active.
codeStringnoNo further notes.

Used by