Skip to main content
Anchor to ProductReorderMediaPayload

ProductReorderMediaPayload

payload

Return type for productReorderMedia mutation.

•Job

The asynchronous job which reorders the media.

•[MediaUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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.

Arguments

•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?