AlmondTill/G3N API

NewStyleInput

input type

Create-input for a Style. The tenant (org group) is derived SERVER-SIDE from the principal — NEVER supplied here; styleType is REQUIRED (all four types accepted — the refusal lifted) and immutable; every referenced construct (scheme groups / brand / seasons / placement categories [LEAF-only] / tags / characteristics [value-validated]) is tenant-scoped server-side and must be ACTIVE.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Style'; when supplied it must be non-blank.
styleTypeStyleType StyleType!yesThe style kind — immutable after birth; all four types accepted.
schemeStyleSchemeEntryInput [StyleSchemeEntryInput!]noThe ORDERED option dimensions (at most 8, unique groups; tier defaulted for color/size, REQUIRED for custom).
brandIdIDnoThe optional Brand — tenant-scoped server-side, must be active.
sizeRunIdIDnoThe optional SizeRun — tenant-scoped server-side, must be ACTIVE and over a group in the scheme.
seasonIdsID [ID!]noSeason memberships (at most 32, unique) — each tenant-scoped + active.
categoryPlacementsStylePlacementEntryInput [StylePlacementEntryInput!]noCategory placements (at most 32, unique, at most 1 primary) — each target tenant-scoped + active + a LEAF.
tagIdsID [ID!]noThe Tag set (at most 64, unique) — each tenant-scoped + active.
characteristicEntriesStyleCharacteristicEntryInput [StyleCharacteristicEntryInput!]noCharacteristic values (at most 64, unique per characteristic) — each target tenant-scoped + active; values validated per valueType/grammar.
codeStringnoNo further notes.
taxCategoryTaxCategorynoThe tax classification — ABSENT = standard (the default).

Used by