Create Image with data in Shopify Using API image

ibabderrahmane
Shopify Partner
3 0 2

Hi,

 

Is there any way to create image on Shopify with the API described bellow by sending image data and not src :

https://shopify.dev/api/admin-rest/2022-10/resources/product-image 

 

Because, using the field "src" that means that our image is already hosted somewhere on the internet.

 

What i'm searching for is there any field that allow us to send data like as OutPutSteam, file, byts .... ?

 

Best regards !

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1326 218 460

Hi @ibabderrahmane 👋

 

We have a great guide here on how manage media for products. It walks you through how to upload media using staged uploads and how to add it to a product

 

Hope that helps!

 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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