# per rest-api angelegte varianten erscheinen nicht im frontend

**URL:** <https://forum.shopware.com/t/per-rest-api-angelegte-varianten-erscheinen-nicht-im-frontend/68142>\
**Category:** Programmierung\
**Created:** [5. Juli 2020 um 21:03 UTC](https://forum.shopware.com/t/per-rest-api-angelegte-varianten-erscheinen-nicht-im-frontend/68142 "2020-07-05T21:03:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![achilleju](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@achilleju](https://forum.shopware.com/u/achilleju)\
**Post date:** [5. Juli 2020 um 21:03 UTC](https://forum.shopware.com/t/per-rest-api-angelegte-varianten-erscheinen-nicht-im-frontend/68142/1 "2020-07-05T21:03:33Z")

</div>

hallo,

folgende payload definiert eine variante für ein bestehendes produkt:

```
 { "parentId": "bdff2530a7fb49519378c5f06f321682", "productNumber": "SW34534.4", "stock": 14, "manufacturerNumber": "345323", "options": [{"id": "520fdd75216146ba8998f1984d29d5d2"}], "price": [{ "currencyId" : "b7d2554b0ce847cd82f3ac9bd1c0dfca", "gross": 16.8, "net": 15.6, "linked" : true }] }

```

&nbsp;die variante und alle weiteren auf diese weise angelegten varianten erscheinen korrekt beim produkt im admin-bereich.

im frontend erscheinen die varianten nicht als auswahl.

---

<div class="post-metadata">

**Author:** ![achilleju](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@achilleju](https://forum.shopware.com/u/achilleju)\
**Post date:** [9. Juli 2020 um 15:49 UTC](https://forum.shopware.com/t/per-rest-api-angelegte-varianten-erscheinen-nicht-im-frontend/68142/2 "2020-07-09T15:49:52Z")

</div>

es fehlten die „configuratorSettings“ bei der anlage des produktes.

„configuratorSettings“: [  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„optionId“: „c0901c57787d4c468b0d8bd420cecf89“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„optionId“: „520fdd75216146ba8998f1984d29d5d2“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;},  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;„optionId“: „e46aa74e11e14eb8a7fd2e411ecc48de“  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}  
&nbsp;&nbsp; &nbsp;]

diese führen dazu, dass die generierten varianten auch zugewiesen werden.
