Posting product with main and other images

Niranka
Visitor
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

Replies 4 (4)

GrahamS
Shopify Staff (Retired)
193 36 53

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

To learn more visit the Shopify Help Center or the Community Blog.

Niranka
Visitor
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.
GrahamS
Shopify Staff (Retired)
193 36 53

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

To learn more visit the Shopify Help Center or the Community Blog.

Niranka
Visitor
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