Class UploadCustomPlaylistCoverRequest


  • public class UploadCustomPlaylistCoverRequest
    extends Object
    Upload a Custom Playlist Cover Image request

    Required OAuth scopes

    ugc-image-upload, playlist-modify-public, playlist-modify-private

    Notes

    The request should contain a Base64 encoded JPEG image data, maximum payload size is 256 KB.

    Rate Limiting: If you get status code 429, it means that you have sent too many requests. If this happens, have a look in the Retry-After header, where you will see a number displayed. This is the amount of seconds that you need to wait, before you can retry sending your requests.

    Response

    If you get status code 429, it means that you have sent too many requests. If this happens, have a look in the Retry-After header, where you will see a number displayed. This is the amount of seconds that you need to wait, before you can retry sending your requests.

    • Constructor Detail

      • UploadCustomPlaylistCoverRequest

        public UploadCustomPlaylistCoverRequest​(ApiClient apiClient,
                                                String playlistId,
                                                String base64Image)

        Upload a Custom Playlist Cover Image request

        Parameters:
        apiClient -

        The API client

        playlistId -

        The Spotify ID for the playlist.

        base64Image -

        The new cover image of the playlist as a Base64 encoded JPEG image. Maximum payload size is 256KB.

    • Method Detail

      • build

        public ApiCall<Void> build()
        Build the request into an executable call