Skip to content
DocumentationAPI Reference

Add Custom Playlist Cover Image

playlists.images.update(playlist_id, **kwargs) -> StringIO
PUT/playlists/{playlist_id}/images

Replace the image used to represent a specific playlist.

ParametersExpand Collapse
playlist_id: String

The Spotify ID of the playlist.

body: String

Base64 encoded JPEG image data, maximum payload size is 256 KB.

formatbinary
ReturnsExpand Collapse
StringIO

Add Custom Playlist Cover Image

require "spotted"

spotted = Spotted::Client.new(access_token: "My Access Token")

image = spotted.playlists.images.update("3cEYpjA9oz9GiPac4AsH4n", body: Pathname(__FILE__))

puts(image)
Returns Examples