How do I insert multi image with restFul service?
I think what you really want is to end up with something more like:

'field_gallery[und][0]' =&gt; 2381,
'field_gallery[und][1]' =&gt; 2375,


The second level of array indexing is the field position. So the first file id goes into [0] and the second into [1].