# REST PUT (Batch) ändert Werte in mainDetail nicht

**URL:** <https://forum.shopware.com/t/rest-put-batch-andert-werte-in-maindetail-nicht/59188>\
**Category:** Programmierung\
**Created:** [23. April 2019 um 07:29 UTC](https://forum.shopware.com/t/rest-put-batch-andert-werte-in-maindetail-nicht/59188 "2019-04-23T07:29:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hanskalk](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@hanskalk](https://forum.shopware.com/u/hanskalk)\
**Post date:** [23. April 2019 um 14:29 UTC](https://forum.shopware.com/t/rest-put-batch-andert-werte-in-maindetail-nicht/59188/2 "2019-04-23T14:29:37Z")

</div>

Der Support konnte mir helfen 🙂

Falls jemand noch mal drüber stolpert. MainDetail muss ein Array sein, kein Object. Ich hatte da einen Fehler. Mit folgenden Call gehts:

[{“id”:36,“name”:“Benzinhahn mit Wassersack - für Simson S50, S51, S70, S53, S83, SR4-3 Sperber, SR4-4 Habicht - MZ ES, TS, ETS, ETZ”,“taxId”:1,“supplierId”:188,“active”:“1”,“pseudosales”:“10000”,“notification”:“1”,“mainDetail”:{“number”:“10000305”,“inStock”:“10000”,“stockmin”:21,“laststock”:“1”,“active”:“1”}}]

&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/rest-put-batch-andert-werte-in-maindetail-nicht/59188)._
