AlmondTill/G3N API

EditStyleInput

input type

Edit-input for a Style. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. brandId and sizeRunId additionally accept an explicit null to clear; every supplied list replaces wholesale, re-gated per entry exactly like create. styleType is NOT editable. A supplied scheme is frozen-gated: once the style has any Product it is refused CONFLICT/REFERENCED naming them.

Fields

FieldTypeRequiredNotes
captionStringno
codeStringno
schemeStyleSchemeEntryInput [StyleSchemeEntryInput!]noThe replacement scheme (wholesale) — refused once any Product exists.
brandIdIDnoThe NEW Brand pointer, or explicit null to clear; omitted = unchanged.
sizeRunIdIDnoThe NEW SizeRun pointer, or explicit null to clear; omitted = unchanged.
seasonIdsID [ID!]noThe replacement season set (wholesale; empty releases).
categoryPlacementsStylePlacementEntryInput [StylePlacementEntryInput!]noThe replacement placements (wholesale; empty releases).
tagIdsID [ID!]noThe replacement tag set (wholesale; empty releases).
characteristicEntriesStyleCharacteristicEntryInput [StyleCharacteristicEntryInput!]noThe replacement characteristic values (wholesale; empty releases).
taxCategoryTaxCategorynoThe classification — revert = set 'standard' (absent means standard; no null-clear).

Used by