PlaylistImages: insert

Adds an image to a playlist.

This method supports media upload. Uploaded files must conform to these constraints:

  • Maximum file size: 50MB
  • Accepted aspect ratio: 1:1 (square)
  • Accepted Media MIME types: image/jpeg, image/png

Quota impact: A call to this method has a quota cost of 50 units.

Request

HTTP request

POST https://www.googleapis.com/youtube/v3/playlistImages

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Parameters

The following table lists the parameters that this query supports. All of the parameters listed are query parameters.

Request body

Provide a playlistImages resource in the request body.

For that resource:

  • You must specify a value for these properties:

    • snippet.playlistId
    • snippet.type
  • You can set values for these properties:

    • snippet.width
    • snippet.height

Response

If successful, this method returns a playlistImages resource in the response body.