AttributeUpdateInput Input Type
Represents an input for update of attribute.
NOTE: Deprecated fields filterableInStorefront, storefrontSearchPosition and availableInGrid are not supported in bulk mutations: attributeBulkCreate, attributeBulkUpdate.
input AttributeUpdateInput {
name: String
slug: String
unit: MeasurementUnitsEnum
removeValues: [ID!]
addValues: [AttributeValueUpdateInput!]
valueRequired: Boolean
isVariantOnly: Boolean
visibleInStorefront: Boolean
filterableInStorefront: Boolean @deprecated
filterableInDashboard: Boolean
storefrontSearchPosition: Int @deprecated
availableInGrid: Boolean @deprecated
externalReference: String
referenceTypes: [ID!]
}
Fields
AttributeUpdateInput.name ● String scalar miscellaneous
Name of an attribute displayed in the interface.
AttributeUpdateInput.slug ● String scalar miscellaneous
Internal representation of an attribute name.
AttributeUpdateInput.unit ● MeasurementUnitsEnum enum miscellaneous
The unit of attribute values.
AttributeUpdateInput.removeValues ● [ID!] list scalar miscellaneous
IDs of values to be removed from this attribute.
AttributeUpdateInput.addValues ● [AttributeValueUpdateInput!] list input attributes
New values to be created for this attribute.
AttributeUpdateInput.valueRequired ● Boolean scalar miscellaneous
Whether the attribute requires values to be passed or not.
AttributeUpdateInput.isVariantOnly ● Boolean scalar miscellaneous
Whether the attribute is for variants only.
AttributeUpdateInput.visibleInStorefront ● Boolean scalar miscellaneous
Whether the attribute should be visible or not in storefront.
AttributeUpdateInput.filterableInStorefront ● Boolean deprecated scalar miscellaneous
No longer supported
Whether the attribute can be filtered in storefront.
AttributeUpdateInput.filterableInDashboard ● Boolean scalar miscellaneous
Whether the attribute can be filtered in dashboard.
AttributeUpdateInput.storefrontSearchPosition ● Int deprecated scalar miscellaneous
No longer supported
The position of the attribute in the storefront navigation (0 by default).
AttributeUpdateInput.availableInGrid ● Boolean deprecated scalar miscellaneous
No longer supported
Whether the attribute can be displayed in the admin product list.
AttributeUpdateInput.externalReference ● String scalar miscellaneous
External ID of this product.
AttributeUpdateInput.referenceTypes ● [ID!] list scalar miscellaneous
Specifies reference types to narrow down the choices of reference objects. Applicable only for REFERENCE and SINGLE_REFERENCE attributes with PRODUCT, PRODUCT_VARIANT and PAGE entity types. Accepts ProductType IDs for PRODUCT and PRODUCT_VARIANT entity types, and PageType IDs for PAGE entity type. If omitted, all objects of the selected entity type are available as attribute values.
A maximum of 100 reference types can be specified.
Added in Saleor 3.22Member Of
AttributeBulkUpdateInput input ● attributeUpdate mutation