Skip to main content

attributeReorderValues Mutation

Reorder the values of an attribute.

Requires the MANAGE_PRODUCT_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • ATTRIBUTE_VALUE_UPDATED (async): An attribute value was updated.
  • ATTRIBUTE_UPDATED (async): An attribute was updated.
attributeReorderValues(
attributeId: ID!
moves: [ReorderInput!]!
): AttributeReorderValues
Show return type

Arguments

attributeId ● ID!

ID of an attribute.

moves ● [ReorderInput!]!

The list of reordering operations for given attribute values.

Type

AttributeReorderValues

Reorder the values of an attribute.

Requires the MANAGE_PRODUCT_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • ATTRIBUTE_VALUE_UPDATED (async): An attribute value was updated.
  • ATTRIBUTE_UPDATED (async): An attribute was updated.