Skip to main content
Version: Canary 🚧


Represents an input for create of attribute.

NOTE: Deprecated fields filterableInStorefront, storefrontSearchPosition and availableInGrid are not supported in bulk mutations: attributeBulkCreate, attributeBulkUpdate.

input AttributeCreateInput {
inputType: AttributeInputTypeEnum
entityType: AttributeEntityTypeEnum
name: String!
slug: String
type: AttributeTypeEnum!
unit: MeasurementUnitsEnum
values: [AttributeValueCreateInput!]
valueRequired: Boolean
isVariantOnly: Boolean
visibleInStorefront: Boolean
filterableInStorefront: Boolean
filterableInDashboard: Boolean
storefrontSearchPosition: Int
availableInGrid: Boolean
externalReference: String


AttributeCreateInput.inputType ● AttributeInputTypeEnum enum

The input type to use for entering attribute values in the dashboard.

AttributeCreateInput.entityType ● AttributeEntityTypeEnum enum

The entity type which can be used as a reference. ● String! non-null scalar

Name of an attribute displayed in the interface.

AttributeCreateInput.slug ● String scalar

Internal representation of an attribute name.

AttributeCreateInput.type ● AttributeTypeEnum! non-null enum

The attribute type.

AttributeCreateInput.unit ● MeasurementUnitsEnum enum

The unit of attribute values.

AttributeCreateInput.values ● [AttributeValueCreateInput!] list input

List of attribute's values.

AttributeCreateInput.valueRequired ● Boolean scalar

Whether the attribute requires values to be passed or not.

AttributeCreateInput.isVariantOnly ● Boolean scalar

Whether the attribute is for variants only.

AttributeCreateInput.visibleInStorefront ● Boolean scalar

Whether the attribute should be visible or not in storefront.

AttributeCreateInput.filterableInStorefront ● Boolean scalar

Whether the attribute can be filtered in storefront.

DEPRECATED: this field will be removed in Saleor 4.0.

AttributeCreateInput.filterableInDashboard ● Boolean scalar

Whether the attribute can be filtered in dashboard.

AttributeCreateInput.storefrontSearchPosition ● Int scalar

The position of the attribute in the storefront navigation (0 by default).

DEPRECATED: this field will be removed in Saleor 4.0.

AttributeCreateInput.availableInGrid ● Boolean scalar

Whether the attribute can be displayed in the admin product list.

DEPRECATED: this field will be removed in Saleor 4.0.

AttributeCreateInput.externalReference ● String scalar

External ID of this attribute.

Added in Saleor 3.10

Member of

attributeBulkCreate mutation ● attributeCreate mutation

Was this page helpful?