Class ChangePlaylistDetailsRequest
java.lang.Object
de.sonallux.spotify.api.apis.playlists.ChangePlaylistDetailsRequest
Change Playlist Details request
Required OAuth scopes
playlist-modify-public, playlist-modify-private
Response
Playlist updated
-
Constructor Summary
ConstructorsConstructorDescriptionChangePlaylistDetailsRequest(ApiClient apiClient, String playlistId) Change Playlist Details request -
Method Summary
Modifier and TypeMethodDescription_public(boolean _public) build()Build the request into an executable api callcollaborative(boolean collaborative) description(String description)
-
Constructor Details
-
ChangePlaylistDetailsRequest
Change Playlist Details request- Parameters:
apiClient-The API client
playlistId-The Spotify ID of the playlist.
-
-
Method Details
-
name
- Parameters:
name-The new name for the playlist, for example
"My New Playlist Title"- Returns:
- this request
-
_public
- Parameters:
_public-If
truethe playlist will be public, iffalseit will be private.- Returns:
- this request
-
collaborative
- Parameters:
collaborative-If
true, the playlist will become collaborative and other users will be able to modify the playlist in their Spotify client.
Note: You can only setcollaborativetotrueon non-public playlists.- Returns:
- this request
-
description
- Parameters:
description-Value for playlist description as displayed in Spotify Clients and in the Web API.
- Returns:
- this request
-
build
Build the request into an executable api call- Returns:
- an executable api call
-