product Reorder Media
Requires access scope. Also: The user must have a permission to reorder the media attached to a product.
Asynchronously reorders the media attached to a product, changing the sequence in which images, videos, and other media appear in product displays. This affects how media is presented across all sales channels.
For example, merchants can move their best product photo to the first position or reorder images to tell a better product story, with changes appearing in storefronts once processing completes.
Use to:
- Optimize media presentation order for better customer experience
- Implement drag-and-drop media management interfaces
- Automate media sequencing based on performance or quality metrics
The operation processes asynchronously to handle products with large media collections without blocking other operations.
Learn more about product media.
Arguments
- •ID!required
The ID of the product on which to reorder medias.
- Anchor to movesmoves•[Move
Input!]! required A list of moves to perform which will be evaluated in order.
- •Job
The asynchronous job which reorders the media.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated The list of errors that occurred from executing the mutation.