# über Admin Api create Product eine Variante anlegen

**URL:** https://forum.shopware.com/t/uber-admin-api-create-product-eine-variante-anlegen/63216
**Category:** Programmierung
**Created:** [27. November 2019 um 15:25 UTC](https://forum.shopware.com/t/uber-admin-api-create-product-eine-variante-anlegen/63216 "2019-11-27T15:25:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stephanie\_schuessler](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@stephanie\_schuessler](https://forum.shopware.com/u/stephanie_schuessler)
#### Post date: [27. November 2019 um 15:25 UTC](https://forum.shopware.com/t/uber-admin-api-create-product-eine-variante-anlegen/63216/1 "2019-11-27T15:25:07Z")

</div>

Ich kann über create Product eine Variante eines Produkts anlegen. Diese wird bei dem Elternprodukt im Backend auch ausgegeben. Im Frontend jedoch bringt die Detailansicht des eine Fehlermeldung, sobald die Variante vorhanden ist. Im Backend sieht man, dass bei Auswahl Variante generieren in der Liste die bereits gewählten eigenschaften nicht als ausgewählte option makiert werden. Wie muss ich die Options übergeben. Im Moment sieht das bei mir in der Variante so aus

„options“: [{  
&nbsp;&nbsp; &nbsp;„id“: „436fa86eae0a4ce4961b49c1f572fe6b“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „c1661008eee140d7b380d4c8a5e961ee“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „bba22cd0cbeb40a881d5b5c4e9fe5c98“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „5118a05fc9a14215a937c2cb81ba72d6“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „1f858a94e0954a1596a3d89c957ebe20“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „3e4e58b350f0428484f48fb93353ef42“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „c112b05835f24550a3c2bceed65d7897“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „14d63b2c510045d4a684c77761bf9c14“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „9dc1d26a16744d82b4b54b9756e79815“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „b51f8963d04e4d09b222926612e85c1b“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;}]

im Eltern Produkt habe ich poperties wie folgt angelegt:

„properties“: [{  
&nbsp;&nbsp; &nbsp;„id“: „436fa86eae0a4ce4961b49c1f572fe6b“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „c1661008eee140d7b380d4c8a5e961ee“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „bba22cd0cbeb40a881d5b5c4e9fe5c98“,  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „5118a05fc9a14215a937c2cb81ba72d6“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „02795a9f63044d1ca61abbd72fde2fe3“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „3e4e58b350f0428484f48fb93353ef42“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „36189bb6c041413a8d1181750b406208“,  
&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „14d63b2c510045d4a684c77761bf9c14“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;„id“: „9dc1d26a16744d82b4b54b9756e79815“,  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„group“: {  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„id“: „b51f8963d04e4d09b222926612e85c1b“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;}]

&nbsp;

Vielen Dank für eure Bemühungen

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [27. November 2019 um 16:34 UTC](https://forum.shopware.com/t/uber-admin-api-create-product-eine-variante-anlegen/63216/2 "2019-11-27T16:34:12Z")

</div>

Hast du dir die Request des Admins da mal angeschaut?  
Das ist ja selbst nur ein API Client und in der Netzwerkübersicht siehst du eigentlich auch immer, was der Admin an die API übergibt bei den jeweiligen Schritten.

---

<div class="post-metadata">

### Author: ![stephanie\_schuessler](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@stephanie\_schuessler](https://forum.shopware.com/u/stephanie_schuessler)
#### Post date: [27. November 2019 um 17:13 UTC](https://forum.shopware.com/t/uber-admin-api-create-product-eine-variante-anlegen/63216/3 "2019-11-27T17:13:02Z")

</div>

ja hab das Problem gefunden ich habe der variante ebenfalls taxid und price object mitgegeben, das hab ich mal gelöscht&nbsp; und nun geht es vielen Dank
