Skip to main content
mutation

Requires write_products access scope. Also: The user must have a permission to reorder the media attached to a product.

Reorders media attached to a product, changing their sequence in product displays. The operation processes asynchronously to handle products with large media collections.

Specify the product ID and an array of moves, where each move contains a media ID and its new zero-based position.


Note

Only include media items that need repositioning. Unchanged items maintain their relative order automatically.


The mutation returns a Job to track the reordering progress. Poll the job status to determine when the operation completes and media positions update across all sales channels.

Learn more about reordering product media.

ID!
required

The ID of the product on which to reorder medias.

[MoveInput!]!
required

A list of moves to perform which will be evaluated in order.


Was this section helpful?

Anchor to ProductReorderMediaPayload returnsProductReorderMediaPayload returns

Job

The asynchronous job which reorders the media.

[MediaUserError!]!
non-null

The list of errors that occurred from executing the mutation.

[UserError!]!
non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?