Thanks for the code but I’m trying to understand how the api works. Can I upload an image or do I have to give it a url? Is there any documentation on this?
Apart from the uploading, if I understand it correctly:
- I make a post to /media (createMedia) to create a new Media Resource
- Somehow get the image to Shopware
- Update the Product and give it the media ID