changeClientPlaylistDetails

suspend fun changeClientPlaylistDetails(playlist: String, name: String? = null, public: Boolean? = null, collaborative: Boolean? = null, description: String? = null)(source)

Change a playlist’s name and public/private state. (The user must, of course, own the playlist.)

Modifying a public playlist requires authorization of the SpotifyScope.PlaylistModifyPublic scope; modifying a private playlist (including collaborative playlists) requires the SpotifyScope.PlaylistModifyPrivate scope.

Api Reference

Parameters

playlist

The id or uri for the playlist.

name

Optional. The name to change the playlist to.

public

Optional. Whether to make the playlist public or not.

collaborative

Optional. Whether to make the playlist collaborative or not.

description

Optional. Whether to change the description or not.

Throws

if the playlist is not found or parameters exceed the max length