# REST-API: Was gibt PUT zurück?

**URL:** <https://forum.shopware.com/t/rest-api-was-gibt-put-zuruck/21008>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [27. Juni 2014 um 13:02 UTC](https://forum.shopware.com/t/rest-api-was-gibt-put-zuruck/21008 "2014-06-27T13:02:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [27. Juni 2014 um 13:02 UTC](https://forum.shopware.com/t/rest-api-was-gibt-put-zuruck/21008/1 "2014-06-27T13:02:11Z")

</div>

Hallo zusammen, wie sieht eine Rückmeldung der REST-API für ein PUT-Kommando aus? Bei mir werden die Daten korrekt geschrieben, doch es kommt keine Rückmeldung. Ist das korrekt? Grüße sunflower

---

<div class="post-metadata">

**Author:** ![Pickware](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pickware/32/8084_2.png) [@Pickware](https://forum.shopware.com/u/Pickware)\
**Post date:** [28. Juni 2014 um 01:10 UTC](https://forum.shopware.com/t/rest-api-was-gibt-put-zuruck/21008/2 "2014-06-28T01:10:48Z")

</div>

Vielleicht ein ähnliches Problem wie hier: [programmierung-f56/rest-api-put-gibt-302-found-statt-json-zuruck-t10963.html](http://forum.shopware.de/programmierung-f56/rest-api-put-gibt-302-found-statt-json-zuruck-t10963.html) Normal sollte es zum Beispiel so aussehen (JSON im Response Body): `$ curl -i -u test:KT6WUqBcLBz7tQkog81blzO5EdHk3xN51WOmf4uT --DIGEST -X PUT -d "orderStatusId=0" "http://shopware.example.com/api/orders/45" HTTP/1.1 302 Moved Temporarily Server: nginx Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive location: http://shopware.example.com/api/orders/45 cache-control: no-cache date: Thu, 26 Jun 2014 13:52:26 GMT {"success":true,"data":{"id":45,"location":"http:\/\/shopware.example.com\/api\/orders\/45"}}`
