# Batch translation mit REST api

**URL:** <https://forum.shopware.com/t/batch-translation-mit-rest-api/50494>\
**Category:** Programmierung\
**Created:** [17. Januar 2018 um 00:50 UTC](https://forum.shopware.com/t/batch-translation-mit-rest-api/50494 "2018-01-17T00:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sition](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Sition](https://forum.shopware.com/u/Sition)\
**Post date:** [17. Januar 2018 um 00:50 UTC](https://forum.shopware.com/t/batch-translation-mit-rest-api/50494/1 "2018-01-17T00:50:52Z")

</div>

```
 Können einige erklären, wie man Übersetzungen (in diesem Fall <u>configuratorGroup</u>) im Batchmodus über die REST API ausführt? Basierend auf der Dokumentation würde ich denken, dass das folgende Snippet korrekt ist. Leider nicht

```

&nbsp;

Eingabe für den Rest api:

```
 $shopware-\>put('translations/' , $batch);

 Inhalt von $batch : 

 Array ( [0] =\> Array ( [type] =\> configuratorgroup [shopId] =\> 2 [data] =\> Array ( [name] =\> Scale ) [id] =\> 34 ) [1] =\> Array ( [type] =\> configuratorgroup [shopId] =\> 3 [data] =\> Array ( [name] =\> Indication ) [id] =\> 34 ) [2] =\> Array ( [type] =\> configuratorgroup [shopId] =\> 5 [data] =\> Array ( [name] =\> Zakres ) [id] =\> 34 ) )
```

---

<div class="post-metadata">

**Author:** ![codiverse](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@codiverse](https://forum.shopware.com/u/codiverse)\
**Post date:** [6. März 2018 um 12:51 UTC](https://forum.shopware.com/t/batch-translation-mit-rest-api/50494/2 "2018-03-06T12:51:04Z")

</div>

Habe das gleiche Problem…

Laut der Doku ([REST API - Examples using the translation resource](https://developers.shopware.com/developers-guide/rest-api/examples/translation/)) sollte es gehen, aber wenn ich ein Array von Translations übergebe, wird nichts mehr aktualisiert.

---

<div class="post-metadata">

**Author:** ![Sition](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Sition](https://forum.shopware.com/u/Sition)\
**Post date:** [12. März 2018 um 11:16 UTC](https://forum.shopware.com/t/batch-translation-mit-rest-api/50494/3 "2018-03-12T11:16:03Z")

</div>

Hi codiverse,

I had to replace [‚id‘] with [‚key‘]

After that, everything works like a charm.
