Add Product images through Admin API

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:

  1. I make a post to /media (createMedia) to create a new Media Resource
  2. Somehow get the image to Shopware
  3. Update the Product and give it the media ID