# API POST PropertyGroup Options - wie werden Translations gesetzt?

**URL:** <https://forum.shopware.com/t/api-post-propertygroup-options-wie-werden-translations-gesetzt/63805>\
**Category:** Programmierung\
**Created:** [4. Januar 2020 um 16:21 UTC](https://forum.shopware.com/t/api-post-propertygroup-options-wie-werden-translations-gesetzt/63805 "2020-01-04T16:21:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)\
**Post date:** [4. Januar 2020 um 16:21 UTC](https://forum.shopware.com/t/api-post-propertygroup-options-wie-werden-translations-gesetzt/63805/1 "2020-01-04T16:21:02Z")

</div>

Hallo

ich versuche Property Group Optiions über das API automatisch zu erstellen und schaffe es nicht die Sprachübersetzungen mitzugeben.

Mein Payload:

$data = {array} [3]  
&nbsp;groupId = „093181c839a445b48fe22b2bcbea9349“  
&nbsp;name = „Gun“  
&nbsp;translated = {array} [1]  
&nbsp; name = {array} [2]  
&nbsp; &nbsp;de-DE = „GunDE“  
&nbsp; &nbsp;de-CH = „GunCH“

API: POST auf&nbsp; /api/v1/property-group-option

Die Option wird korrekt erstellt, aber die Sprachlabels nicht. Was mache ich falsch?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)\
**Post date:** [16. Januar 2020 um 14:49 UTC](https://forum.shopware.com/t/api-post-propertygroup-options-wie-werden-translations-gesetzt/63805/2 "2020-01-16T14:49:22Z")

</div>

&nbsp;&nbsp;“translations”:{&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“en-GB”:{&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“name”:“Testeintrag2&nbsp;Englisch”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“es-ES”:{&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“name”:“Testeintrag&nbsp;Spanisch”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;}

&nbsp;

funktioniert in Kategorien, Produkte, Property-Groups, Options…
