Class CreatePlaylistRequest

All Implemented Interfaces:
IRequest<Playlist>

public class CreatePlaylistRequest extends AbstractDataRequest<Playlist>
Create a playlist for the current Spotify user. (The playlist will be empty until you add tracks.) Each user is generally limited to a maximum of 11000 playlists.
See Also:
  • Method Details

    • execute

      public Playlist execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
      Send the request.
      Returns:
      A playlist
      Throws:
      IOException - In case of networking issues.
      SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.
      org.apache.hc.core5.http.ParseException - The response could not be parsed.