Skip to content

Attribute Family — Create (GraphQL)

Creates a new attribute family. A family is the set of attribute groups (and the attributes within each group) that a product of that family is edited against. You may seed the family's structure inline by passing attributeGroups, where each group may carry customAttributes to attach existing attributes to it. code must be unique.

TIP

See the Attribute Families overview for how families relate to attributes and products.

The mutation payload returns the new family's scalar fields. The attributeGroups connection is not resolved on the mutation result — re-query adminAttributeFamily to read the full structure back.

All admin operations require an admin Bearer token — see Authentication.

Released under the MIT License.