Class RemoveTracksPlaylistRequest

java.lang.Object
de.sonallux.spotify.api.apis.playlists.RemoveTracksPlaylistRequest

public class RemoveTracksPlaylistRequest extends Object

Remove Playlist Items request

Required OAuth scopes

playlist-modify-public, playlist-modify-private

Response

A snapshot ID for the playlist

  • 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

      public RemoveTracksPlaylistRequest snapshotId(String 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

      public ApiCall<PlaylistSnapshotId> build()
      Build the request into an executable api call
      Returns:
      an executable api call