addPlayablesToClientPlaylist

suspend fun addPlayablesToClientPlaylist(playlist: String, vararg playables: PlayableUri, position: Int? = null)(source)

Add a Playable to a user’s playlist.

Adding playables to the current user’s public playlists requires authorization of the SpotifyScope.PlaylistModifyPublic scope; adding playables to 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

Playable uris. Max 100 without bulk requesting enabled

position

The position to insert the playables, a zero-based index. For example, to insert the playables in the first position: position=0; to insert the playables in the third position: position=2. If omitted, the playables will be appended to the playlist. Playables are added in the order they are listed in the query string or request body.

Throws

if any invalid playable ids is provided or the playlist is not found