Anchor to productUpdateMediaproduct
mutationproduct Update Media
Requires access scope. Also: The user must have a permission to update media for a product.
Deprecated. Use fileUpdate instead.
Updates properties of media attached to a Product. You can modify alt text for accessibility or change preview images for existing media items.
Provide the product ID and an array of objects. Each update specifies the media's ID and the properties to change. Updates apply only to media already attached to the product and don't affect their position in the product gallery.
Anchor to Arguments
Arguments
- Anchor to mediamedia•[Update
Media Input!]! required A list of media updates.
- Anchor to productIdproduct•ID!
Id required Specifies the product on which media will be updated.
Was this section helpful?
- Anchor to mediamedia•[Media!]
The updated media object.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product on which media was updated.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated The list of errors that occurred from executing the mutation.
Was this section helpful?