Skip to main content

attributeReorderValues

Reorder the values of an attribute.

Requires 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

Arguments

attributeReorderValues.attributeId ● ID! non-null scalar miscellaneous

ID of an attribute.

attributeReorderValues.moves ● [ReorderInput!]! non-null input miscellaneous

The list of reordering operations for given attribute values.

Type

AttributeReorderValues object attributes

Reorder the values of an attribute.

Requires 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.