Product Attributes
Create Product Attribute
Create a catalog product attribute.
POST
Creates a shared attribute that products across the catalog can use.
is_variant_axis is only valid for multi_select attributes. Axis attributes provide the value sets that variants are generated from.Body parameters
string
required
Attribute name.
string
required
One of
single_select, multi_select, unit, toggle, text.string
Unique URL-safe handle, generated from the name if omitted.
string
Attribute description.
boolean
Whether a value is required on products.
boolean
Whether the attribute can be used as a storefront filter.
boolean
Whether the attribute drives variant generation; only valid for
multi_select.number
Sort rank of the attribute; must be non-negative.
boolean
Whether the attribute is active.
string[]
IDs of categories to link the attribute to; omit for a global attribute.
object[]
Initial attribute values for select types.
object
Custom key-value data.
object
Custom data passed to workflow hooks.
Response
object