def replace_tracks!(tracks)
      track_uris = tracks.map(&:uri).join(',')
      url = "#{@path}/tracks?uris=#{track_uris}"
      User.oauth_put(@owner.id, url, {})

      @total = tracks.size
      @tracks_cache = nil
      @snapshot_id = nil
      tracks
    end
def replace_tracks!(tracks)
      track_uris = tracks.map(&:uri).join(',')
      url = "#{@path}/tracks?uris=#{track_uris}"
      User.oauth_put(@owner.id, url, {})

      @total = tracks.size
      @tracks_cache = nil
      @snapshot_id = nil
      tracks
    end
Replace all the tracks in a playlist, overwriting its existing tracks. Changing a public playlist requires
 the *playlist-modify-public* scope; changing a private playlist requires the *playlist-modify-private* scope.

 @param tracks [Array<Track>] The tracks that will replace the existing ones. Maximum: 100 per request
 @return [Array<Track>] The tracks that were added.

 @example
           playlist.tracks.map(&:name) #=> ["All of Me", "Wasted Love", "Love Runs Out"]
           tracks = RSpotify::Track.search('Know', limit: 2)
           playlist.replace_tracks!(tracks)
           playlist.tracks.map(&:name) #=> ["Somebody That I Used To Know", "Do I Wanna Know?"]