update friends api