update favorite api call put intead of post