All things Shopify and commerce
Hi there, I have a small problem with uploading images to products via the shopify REST Api.
When I create a image for a product, with a post request, I can't see it in my shop. When i fetch my product again with a GET request I'm able to see that there is an image.
My Request: POST: /admin/api/2019-07/products.json
"title":"Burton Custom Freestyle 151",
"tags":"Barnes & Noble, John's Fav, \"Big Air\"",
I also tried to upload it to the "ProductImages" endpoint with the same result.
Thanks in advance
PS: it's just some test so the data doesn't make any sense
what response are you getting after the POST request?
also, i think bodyhtml and producttype properties are wrong, can you compare with the documentation?
the missing underscores are just in the post missing. They are present in the original call.
thank you for your response and thanks for any other solutions
In the image of the data response I see an image in place. This one:
So what's not working as you expect? Is this about the API or more to do with the front end code not showing the image? Those could be two very different issues.
The image there is not shown anywhere in the shop. Even though it's saved.
i found the bug. Thanks for the help
what was the bug, i have the same issue
Was the bug of any relevance to the problem, or unrelated? Would be nice to know for the sake of anyone else that reads this dead end post
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...By Jacqui Mar 30, 2023
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023