# Add Product images through Admin API

**URL:** https://forum.shopware.com/t/add-product-images-through-admin-api/64359
**Category:** Programming (EN)
**Created:** [30. Januar 2020 um 11:29 UTC](https://forum.shopware.com/t/add-product-images-through-admin-api/64359 "2020-01-30T11:29:16Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![WBKNL](https://avatars.discourse-cdn.com/v4/letter/w/e36b37/32.png) [@WBKNL](https://forum.shopware.com/u/WBKNL)
#### Post date: [30. Januar 2020 um 13:43 UTC](https://forum.shopware.com/t/add-product-images-through-admin-api/64359/5 "2020-01-30T13:43:57Z")

</div>

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

---

_[View the full topic](https://forum.shopware.com/t/add-product-images-through-admin-api/64359)._
