Copy objects
It is possible copy any object of any resource with the following endpoint:
POST:Â http://{host}/ws/rest/{Resource name}/copy/{key}
It will create a new object in the data model, copying also the sub-objects, and will return it as response.
Â
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).
Â
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?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.
Â