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

# attributeUpdate Mutation

Updates attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE\_PRODUCT\_TYPES\_AND\_ATTRIBUTES for \`PRODUCT\_TYPE\` attributes MANAGE\_PAGE\_TYPES\_AND\_ATTRIBUTES for \`PAGE\_TYPE\` attributes MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES for \`CUSTOMER\_TYPE\` attributes

Triggers the following webhook events:

-   ATTRIBUTE\_UPDATED (async): An attribute was updated.

```graphql
attributeUpdate(
  externalReference: String
  id: ID
  input: AttributeUpdateInput!
): AttributeUpdate
```

Details

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

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

### Arguments

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

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

External ID of an attribute to update.

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

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

ID of an attribute to update.

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

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

Fields required to update an attribute.

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

### Type

<a id="attributeupdate"></a>

#### [`AttributeUpdate`](/api-reference/attributes/objects/attribute-update.md)

Updates attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE\_PRODUCT\_TYPES\_AND\_ATTRIBUTES for \`PRODUCT\_TYPE\` attributes MANAGE\_PAGE\_TYPES\_AND\_ATTRIBUTES for \`PAGE\_TYPE\` attributes MANAGE\_CUSTOMER\_TYPES\_AND\_ATTRIBUTES for \`CUSTOMER\_TYPE\` attributes

Triggers the following webhook events:

-   ATTRIBUTE\_UPDATED (async): An attribute was updated.
