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

# AttributeCreateInput Input Type

Represents an input for create of attribute.

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

```graphql
input AttributeCreateInput {
  inputType: AttributeInputTypeEnum
  entityType: AttributeEntityTypeEnum
  name: String!
  slug: String
  type: AttributeTypeEnum!
  unit: MeasurementUnitsEnum
  values: [AttributeValueCreateInput!]
  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="input-type"></a>

#### [`inputType`](#input-type) ● [`AttributeInputTypeEnum`](/api-reference/attributes/enums/attribute-input-type-enum.md)

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

<a id="entity-type"></a>

#### [`entityType`](#entity-type) ● [`AttributeEntityTypeEnum`](/api-reference/attributes/enums/attribute-entity-type-enum.md)

The entity type which can be used as a reference.

<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="type"></a>

#### [`type`](#type) ● [`AttributeTypeEnum!`](/api-reference/attributes/enums/attribute-type-enum.md)

The attribute type.

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

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

The unit of attribute values.

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

#### [`values`](#values) ● [`[AttributeValueCreateInput!]`](/api-reference/attributes/inputs/attribute-value-create-input.md)

List of attribute's values.

<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 attribute.

<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

[`attributeBulkCreate`](/api-reference/attributes/mutations/attribute-bulk-create.md) mutation  ● [`attributeCreate`](/api-reference/attributes/mutations/attribute-create.md) mutation
