Implementing the 'merge' functionality in the POST request handler
wherein existing items are updated.