Docs
Dashboard

AttributeCreateInput

Input

Input for creating a new product attribute.

#

Fields


metadata
[KeyValuePairOfStringAndStringInput!]

Optional metadata key/value pairs.

metafields
[MetafieldInput!]

The metafield values to assign to the attribute during creation.

name
String!

The display name of the attribute.

type
ProductAttributeType!

The type of the attribute (e.g. Text, Swatch).

Possible enum values
  • SWATCH

    Presents the attribute value as a visual swatch, such as a color or pattern.

  • TEXT

    Presents the attribute value as text.