# REST-API Variantenbilder

**URL:** <https://forum.shopware.com/t/rest-api-variantenbilder/38115>\
**Category:** Programmierung\
**Created:** [11. Juli 2016 um 14:49 UTC](https://forum.shopware.com/t/rest-api-variantenbilder/38115 "2016-07-11T14:49:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schwindt\_Leibrock](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Schwindt\_Leibrock](https://forum.shopware.com/u/Schwindt_Leibrock)\
**Post date:** [11. Juli 2016 um 14:49 UTC](https://forum.shopware.com/t/rest-api-variantenbilder/38115/1 "2016-07-11T14:49:12Z")

</div>

Guten Tag zusammen,

ich habe ein Problem mit dem Zuordnen von Bildern und Varianten.

Wenn ich z.B. diese Zuordnung vornehme habe ich folgendes Problem:

```
{"images":[{"description":"","mediaId":"360","main":"1","position":"1","options":[[{"name":"2-lagig, 24x24 cm - 1/4 Falz"},{"name":"2-lagig 33x33 cm - 1/4 Falz"},{"name":"3-lagig 33x33 cm - 1/4 Falz"},{"name":"3-lagig 40x40 cm - 1/4 Falz"}]]},{"description":"","mediaId":"361","main":"2","position":"2","options":[[{"name":"2-lagig 33x33 cm - 1/8 Falz"}]]}],"downloads":[]}

```

Bei der Variante “2-lagig 33x33 cm - 1/8 Falz” werden komischerweise beide Bilder angezeigt.

[![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/5/53f988acd4bfba891c836424e95e804c5e3e7423.png)](http://to-officeline.de/shop1.png)

Ich kann mir leider nicht erklären, warum dies so ist.

Im Backend ist auch die Zuordnung fehlerhaft!

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/d/db69741ed2ef763fba4e050f6f2a44b531a43eb5.png)

Hat jemand dieses Problem bzw. hat dieses Problem bereits jemand gelöst?

Für Tipps wäre ich sehr dankbar.
