Posting product with main and other images

Niranka
New Member
3 0 0

Hello, I need a support for posting product with main and other images using rest API. I have tried few products with different images, few of them are successfully posted with image but some of products are posted successfully and we could not found image posted on store.
Product with below URl : Successfully posted ----
https://images-na.ssl-images-amazon.com/images/I/51Y3HCREuWL._SL1280_.jpg
Product with below URl :Product posted without Image----
https://images-na.ssl-images-amazon.com/images/I/41f4n2fVjaL._SL1280_.jpg

0 Likes
GrahamS
Shopify Staff
Shopify Staff
122 18 21

Hello @Niranka ,

Can you supply an x-request-id for a product creation that did not successfully add the image? I can take a look for you.

Best,

Graham

Graham S | API Support @ 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

0 Likes
Niranka
New Member
3 0 0
Hello @GrahamS
Thanks for your reply.
I am not getting a point where request id is there for the posed product
with rest API.I am sharing product id which we got in the rest api
response on successfully created product but not adding the image.

Product id : 7129834979497

Thanks.
0 Likes
GrahamS
Shopify Staff
Shopify Staff
122 18 21

Hello @Niranka ,

The x-request-id is provided in the response headers that come back from our server when you use the REST API. If you are successfully interacting with the server to upload a product, then there should be an x-request-id even if the photos fail to upload.

Best,

Graham

Graham S | API Support @ 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

0 Likes
Niranka
New Member
3 0 0
Hello,
GrahamS,
Thanks for your support. We successfully posted products with main and
other media images now.

We have a query regarding rest api. If somehow we post a product with the
wrong format of other images param to feed requests then we are not
getting errors and products posted without images.
So we need to prevent them from api feed requests. Is it possible to
prevent them from posting api requests?

Thanks
0 Likes