Add update method to webapp api.