Adding API to mark object as viewed