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

# attributeCreate Mutation

Creates an attribute.

Triggers the following webhook events:

-   ATTRIBUTE\_CREATED (async): An attribute was created.

```graphql
attributeCreate(
  input: AttributeCreateInput!
): AttributeCreate
```

Details

```graphql
type AttributeCreate {
  attribute: Attribute
  attributeErrors: [AttributeError!]! @deprecated
  errors: [AttributeError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="input"></a>

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

Fields required to create an attribute.

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

### Type

<a id="attributecreate"></a>

#### [`AttributeCreate`](/api-reference/attributes/objects/attribute-create.md)

Creates an attribute.

Triggers the following webhook events:

-   ATTRIBUTE\_CREATED (async): An attribute was created.
