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

# attributeReorderValues Mutation

Reorder the values of an 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\_VALUE\_UPDATED (async): An attribute value was updated.
-   ATTRIBUTE\_UPDATED (async): An attribute was updated.

```graphql
attributeReorderValues(
  attributeId: ID!
  moves: [ReorderInput!]!
): AttributeReorderValues
```

Details

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

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

### Arguments

<a id="attribute-id"></a>

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

ID of an attribute.

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

#### [`moves`](#moves) ● [`[ReorderInput!]!`](/api-reference/miscellaneous/inputs/reorder-input.md)

The list of reordering operations for given attribute values.

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

### Type

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

#### [`AttributeReorderValues`](/api-reference/attributes/objects/attribute-reorder-values.md)

Reorder the values of an 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\_VALUE\_UPDATED (async): An attribute value was updated.
-   ATTRIBUTE\_UPDATED (async): An attribute was updated.
