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

# attributeValueUpdate Mutation

Updates value of an attribute.

Requires one of the following permissions, depending on the type of the value's attribute: 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\_VALUE\_UPDATED (async): An attribute value was updated.
-   ATTRIBUTE\_UPDATED (async): An attribute was updated.

```graphql
attributeValueUpdate(
  externalReference: String
  id: ID
  input: AttributeValueUpdateInput!
): AttributeValueUpdate
```

Details

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

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

### Arguments

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

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

External ID of an AttributeValue to update.

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

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

ID of an AttributeValue to update.

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

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

Fields required to update an AttributeValue.

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

### Type

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

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

Updates value of an attribute.

Requires one of the following permissions, depending on the type of the value's attribute: 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\_VALUE\_UPDATED (async): An attribute value was updated.
-   ATTRIBUTE\_UPDATED (async): An attribute was updated.
