REST Resource: playlistImages

Resource: PlaylistImage

A playlistImage resource identifies a thumbnail image associated with a playlist.

JSON representation
{
  "kind": string,
  "id": string,
  "snippet": {
    "playlistId": string,
    "type": enum,
    "width": integer,
    "height": integer
  }
}
Fields
kind

string

Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#playlistImage".

id

string

The ID that YouTube uses to uniquely identify the playlist image (combines the playlist ID and image type).

snippet

object

The snippet object contains basic details about the playlist image, such as its associated playlist, type, and dimensions.

snippet.playlistId

string

The ID of the playlist that this image is associated with.

snippet.type

enum

The image type. hero identifies the main custom thumbnail image for the playlist.

This enum field has the one valid value:

  • hero
snippet.width

integer

Read-only. The image width, in pixels. The server computes this value from the uploaded image and rejects requests that specify it on insert or update.

snippet.height

integer

Read-only. The image height, in pixels. The server computes this value from the uploaded image and rejects requests that specify it on insert or update.

Methods

delete

Deletes a playlist thumbnail image.

insert

Uploads a custom thumbnail image and adds it to a playlist.

list

Returns a collection of playlist images that match the API request parameters.

update

Updates the thumbnail image for an existing playlist.