change Client Playlist Details Rest Action
fun changeClientPlaylistDetailsRestAction(playlist: String, name: String? = null, public: Boolean? = null, collaborative: Boolean? = null, description: String? = null): SpotifyRestAction<Unit>
Content copied to clipboard
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.PLAYLIST_MODIFY_PUBLIC scope; modifying a private playlist (including collaborative playlists) requires the SpotifyScope.PLAYLIST_MODIFY_PRIVATE scope.
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
Sources
(source)
Link copied to clipboard