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
Attribute name.
One of
single_select, multi_select, unit, toggle, text.Unique URL-safe handle, generated from the name if omitted.
Attribute description.
Whether a value is required on products.
Whether the attribute can be used as a storefront filter.
Whether the attribute drives variant generation; only valid for
multi_select.Sort rank of the attribute; must be non-negative.
Whether the attribute is active.
IDs of categories to link the attribute to; omit for a global attribute.
Initial attribute values for select types.
Custom key-value data.
Custom data passed to workflow hooks.