Product Attributes
Update Product Attribute
Update a catalog product attribute.
POST
Updates the attribute’s details; only the provided fields are changed.
type is immutable — sending a type different from the attribute’s current type returns an error.Path parameters
The attribute’s ID.
Body parameters
Attribute name.
Unique URL-safe handle.
Attribute description.
Must match the current type:
single_select, multi_select, unit, toggle, or text.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; replaces the existing links.
Custom key-value data.
Custom data passed to workflow hooks.