How to change the previewImage of the Video ?

Solved

How to change the previewImage of the Video ?

yinghechen
Shopify Partner
6 0 0
After I created a video through api, and I have the video ID, but I couldn't find a mutation that allows me to update the previewImage of the video. Or is there a way to set it during productCreateMedia or stagedUploadsCreate The documentation of video is at : https://shopify.dev/docs/api/storefront/2023-07/objects/Video
Accepted Solution (1)

Shayne
Shopify Staff (Retired)
254 20 48

This is an accepted solution.

You should be able to update the preview image of the media with the productUpdateMedia mutation, `UpdateMediaInput.previewImageSource` is likely what you're looking for.

Shayne | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)

Shayne
Shopify Staff (Retired)
254 20 48

This is an accepted solution.

You should be able to update the preview image of the media with the productUpdateMedia mutation, `UpdateMediaInput.previewImageSource` is likely what you're looking for.

Shayne | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog