product Reorder Media
Requires 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.
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.
- 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.