replaceClientPlaylistPlayables

suspend fun replaceClientPlaylistPlayables(playlist: String, vararg playables: PlayableUri)(source)

Replace all the playables in a playlist, overwriting its existing playables. This powerful request can be useful for replacing playables, re-ordering existing playables, or clearing the playlist.

Setting playables in the current user’s public playlists requires authorization of the SpotifyScope.PlaylistModifyPublic scope; setting playables in the current user’s private playlist (including collaborative playlists) requires the SpotifyScope.PlaylistModifyPrivate scope.

Api Reference

Parameters

playlist

The id or uri for the playlist.

playables

The Spotify playable uris. Maximum 100 without bulk requesting enabled.

Throws

if playlist is not found or illegal playables are provided