# Copy objects

It is possible copy any object of any resource with the following endpoint:

* POST: [http://{host}/ws/rest/{Resource name}/copy/{](http://localhost:8080/ws/rest/Cargo/copy/213496782)key}

It will create a new object in the data model, copying also the sub-objects, and will return it as response.

&#x20;

It is possible override attributes passing a JSON in the body (passing an attribute with null value will have no effect. Only simple types in the first level of the JSON will be used to override).

&#x20;

It is possible copy multiple objects, of a give resource, sending as URL parameters the list of keys:

* POST: [http://{host}/ws/rest/{Resource name}/copy?](http://localhost:8080/ws/rest/Cargo/copy/213496782)key={key 1}\&key={key 2}\&key={key 3}...

it will create a new object for all the specified keys and returns am array of the created objects.
