Skip to main content
mutation

Requires write_products 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 UpdateMediaInput 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.

•[UpdateMediaInput!]!
required

A list of media updates.

•ID!
required

Specifies the product on which media will be updated.


Was this section helpful?

Anchor to ProductUpdateMediaPayload returnsProductUpdateMediaPayload returns

•[Media!]

The updated media object.

•[MediaUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•Product

The product on which media was updated.

•[UserError!]!
non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?