# \[GELÖST\] mehrere Eigenschaften / PropertyValues übergeben

**URL:** https://forum.shopware.com/t/gelost-mehrere-eigenschaften-propertyvalues-ubergeben/60402
**Category:** Programmierung
**Created:** [12. Juli 2019 um 06:23 UTC](https://forum.shopware.com/t/gelost-mehrere-eigenschaften-propertyvalues-ubergeben/60402 "2019-07-12T06:23:30Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![ent\_dev](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ent\_dev](https://forum.shopware.com/u/ent_dev)
#### Post date: [6. Mai 2020 um 09:14 UTC](https://forum.shopware.com/t/gelost-mehrere-eigenschaften-propertyvalues-ubergeben/60402/5 "2020-05-06T09:14:56Z")

</div>

Hallo @Weidmann, hast du auch die&nbsp;

```
filterGroupId

```

übergeben?

&nbsp;

Die ID deines Filtersets. Da habe ich auch eine Fehlermeldung zu bekommen.

&nbsp;

> [@Weidmann schrieb:](https://forum.shopware.com/profile/35037/Weidmann "Weidmann")
> 
> Hallo,
> 
> ich versuche seit Stunden die Options über die API zu setzen (nutze Python).
> 
> Ich mache das genau so, wie hier beschrieben:
> 
> …
> 
> ‚propertyValues‘:  
> [{‚id‘: 3845, ‚optionId‘: 26}, {‚id‘: 3843, ‚optionId‘:11}, {‚id‘: 3728, ‚optionId‘: 25}]
> 
> …
> 
> und erhalte immer den Fehler:
> 
> apiTest.ShopwareAPIError: Shopware indicated a failure: {‚success‘: False, ‚message‘: ‚Name or id for property value required‘}
> 
> zurück.
> 
> &nbsp;
> 
> Habe auch diese Kombinationen durchprobiert:
> 
> 1. mit Schlüsselwort „option“:
> 
> ‚propertyValues‘: [{‚option‘: {‚id‘: 3845, ‚optionId‘: 26}}, {‚option‘: {‚id‘: 3843, ‚optionId‘:11}}, {‚option‘: {‚id‘: 3728, ‚optionId‘: 25}}]
> 
> 1. mit value eine Ebene tiefer:
> 
> ‚propertyValues‘: [{‚option‘: {‚id‘: 3845},&nbsp; ‚optionId‘: 26}, {‚option‘: {‚id‘: 3843}, ‚optionId‘:11}, {‚option‘: {‚id‘: 3728}, ‚optionId‘: 25}]
> 
> 1. Keys gedreht:
> 
> ‚propertyValues‘: [{‚option‘: {‚optionId‘: 26},&nbsp; ‚id‘: 3845}, {‚option‘: {‚optionId‘: 11}, ‚id‘:3843}, {‚option‘: {‚optionId‘: 25}, ‚id‘: 3728}]
> 
> etc.
> 
> &nbsp;
> 
> Wenn ich ein GET mache, erhalte ich das:
> 
> ‚propertyValues‘: [  
> { ‚id‘: 3728, ‚value‘: ‚27 mm‘, ‚position‘: 0, ‚optionId‘: 25, ‚mediaId‘: None},  
> { ‚id‘: 3843, ‚value‘: ‚800 mm‘, ‚position‘: 0, ‚optionId‘: 11, ‚mediaId‘: None},  
> { ‚id‘: 3845, ‚value‘: ‚4200 mm‘, ‚position‘: 0, ‚optionId‘: 26, ‚mediaId‘: None}
> 
> ]
> 
> Wenn ich jetzt lese, dass das alles bei Euch so funktioniert, könnte ich verzweifeln … übersehe ich etwas?
> 
> Gruß,
> 
> Christoph

---

_[View the full topic](https://forum.shopware.com/t/gelost-mehrere-eigenschaften-propertyvalues-ubergeben/60402)._
