Updated the "put" API methods to return the updated entity.