Docs
Dashboard

AttributeValueSwatchInput

Input

Input for a swatch-based attribute value.

#

Fields


color
String

Optional color code (e.g. hex).

mediaId
ID

Optional media identifier associated with this swatch.

metadata
[KeyValuePairOfStringAndStringInput!]

Optional metadata.

metafields
[MetafieldInput!]

The metafield values to add or update on the attribute value. Existing metafields not included in the list are preserved. When explicitly specified as null during update, all assigned value metafields are removed.

value
String

The swatch label or value.