Skip to main content
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

string
required
The attribute’s ID.

Body parameters

string
Attribute name.
string
Unique URL-safe handle.
string
Attribute description.
string
Must match the current type: single_select, multi_select, unit, toggle, or text.
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; replaces the existing links.
object
Custom key-value data.
object
Custom data passed to workflow hooks.

Response

object