Class RemoveTracksPlaylistRequest
java.lang.Object
de.sonallux.spotify.api.apis.playlists.RemoveTracksPlaylistRequest
Remove Playlist Items request
Required OAuth scopes
playlist-modify-public, playlist-modify-private
Response
A snapshot ID for the playlist
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the request into an executable api callsnapshotId(String snapshotId)
-
Constructor Details
-
RemoveTracksPlaylistRequest
public RemoveTracksPlaylistRequest(ApiClient apiClient, String playlistId, List<Map<String, Object>> tracks) Remove Playlist Items request- Parameters:
apiClient-The API client
playlistId-The Spotify ID of the playlist.
tracks-An array of objects containing Spotify URIs of the tracks or episodes to remove. For example:
{ "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },{ "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }. A maximum of 100 objects can be sent at once.
-
-
Method Details
-
snapshotId
- Parameters:
snapshotId-The playlist's snapshot ID against which you want to make the changes. The API will validate that the specified items exist and in the specified positions and make the changes, even if more recent changes have been made to the playlist.
- Returns:
- this request
-
build
Build the request into an executable api call- Returns:
- an executable api call
-