Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

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.

Applied directives

@webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: [])
attributeReorderValues(attributeId: ID!, moves: [ReorderInput!]!): AttributeReorderValues

Returns

AttributeReorderValues

Show return type
type AttributeReorderValues {
  attribute: Attribute
  attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [AttributeError!]!
}

Arguments

attributeId

attributeId · ID!

ID of an attribute.

moves

moves · [ReorderInput!]!

The list of reordering operations for given attribute values.


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?