> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/attributes/llms.txt)
> Source: https://docs.saleor.io/api-reference/attributes/inputs/attribute-update-input

# 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`.

```graphql
input AttributeUpdateInput {
  name: String
  slug: String
  unit: MeasurementUnitsEnum
  removeValues: [ID!]
  addValues: [AttributeValueUpdateInput!]
  valueRequired: Boolean
  isVariantOnly: Boolean
  visibleInStorefront: Boolean
  filterableInStorefront: Boolean @deprecated
  filterableInDashboard: Boolean @deprecated
  storefrontSearchPosition: Int @deprecated
  availableInGrid: Boolean @deprecated
  externalReference: String
  referenceTypes: [ID!]
}
```

<a id="fields"></a>

### Fields

<a id="name"></a>

#### [`name`](#name) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Name of an attribute displayed in the interface.

<a id="slug"></a>

#### [`slug`](#slug) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Internal representation of an attribute name.

<a id="unit"></a>

#### [`unit`](#unit) ● [`MeasurementUnitsEnum`](/api-reference/miscellaneous/enums/measurement-units-enum.md)

The unit of attribute values.

<a id="remove-values"></a>

#### [`removeValues`](#remove-values) ● [`[ID!]`](/api-reference/miscellaneous/scalars/id.md)

IDs of values to be removed from this attribute.

<a id="add-values"></a>

#### [`addValues`](#add-values) ● [`[AttributeValueUpdateInput!]`](/api-reference/attributes/inputs/attribute-value-update-input.md)

New values to be created for this attribute.

<a id="value-required"></a>

#### [`valueRequired`](#value-required) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Whether the attribute requires values to be passed or not.

<a id="is-variant-only"></a>

#### [`isVariantOnly`](#is-variant-only) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Whether the attribute is for variants only.

<a id="visible-in-storefront"></a>

#### [`visibleInStorefront`](#visible-in-storefront) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Whether the attribute should be visible or not in storefront.

<a id="external-reference"></a>

#### [`externalReference`](#external-reference) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

External ID of this product.

<a id="reference-types"></a>

#### [`referenceTypes`](#reference-types) ● [`[ID!]`](/api-reference/miscellaneous/scalars/id.md)

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.22 Show deprecatedHide deprecated

<a id="filterable-in-storefront"></a>

#### [`filterableInStorefront`](#filterable-in-storefront) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

DEPRECATED

This flag is not used by Saleor. Keep the logic in the storefront or use `Attribute` metadata instead.

Whether the attribute can be filtered in storefront.

<a id="filterable-in-dashboard"></a>

#### [`filterableInDashboard`](#filterable-in-dashboard) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

DEPRECATED

This flag is not used by Saleor. Keep the logic in the dashboard or use `Attribute` metadata instead.

Whether the attribute can be filtered in dashboard.

<a id="storefront-search-position"></a>

#### [`storefrontSearchPosition`](#storefront-search-position) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

DEPRECATED

This flag is not used by Saleor. Keep the logic in the storefront or use `Attribute` metadata instead.

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

<a id="available-in-grid"></a>

#### [`availableInGrid`](#available-in-grid) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

DEPRECATED

This flag is not used by Saleor. Keep the logic in the storefront or use `Attribute` metadata instead.

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

<a id="member-of"></a>

### Member Of

[`AttributeBulkUpdateInput`](/api-reference/attributes/inputs/attribute-bulk-update-input.md) input  ● [`attributeUpdate`](/api-reference/attributes/mutations/attribute-update.md) mutation
