Uploads a custom thumbnail image and adds it to a playlist.
This method requires a media upload to the upload URI (/upload/youtube/v3/playlistImages); metadata-only requests fail. Uploaded images must conform to these constraints:
- Maximum file size: 50 MiB
- Accepted aspect ratio: 1:1 (square), within 5% tolerance
- Accepted media MIME types:
image/jpeg,image/png,application/octet-stream(decoded image must be JPEG or PNG)
In the PlaylistImage request body, specify snippet.playlistId and snippet.type (must be hero). Do not specify id, snippet.width, or snippet.height, which fail with 400 invalidFieldSpecified. If an image of that type already exists on the playlist, the request fails with 409 imageTypeAlreadyExists; call playlistImages.update instead. The playlist's channel must be eligible for custom thumbnails, or the request fails with 403 forbidden.
For method-specific error responses, see playlistImages.insert errors.
HTTP request
- Upload URI, for media upload requests:
POST https://youtube.googleapis.com/upload/youtube/v3/playlistImages - Metadata URI, for metadata-only requests:
POST https://youtube.googleapis.com/youtube/v3/playlistImages
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
part[] |
Required. Specifies a comma-separated list of one or more |
onBehalfOfContentOwner |
Intended exclusively for YouTube content partners and valid only in an authorized request. Indicates that the request's authorization credentials identify a YouTube CMS user acting on behalf of the specified content owner, allowing partners that manage multiple channels to authenticate once and access data for linked channels. |
onBehalfOfContentOwnerChannel |
Intended exclusively for YouTube content partners and valid only in an authorized request. Specifies the YouTube channel ID of a channel managed by the content owner in |
Request body
The request body contains an instance of PlaylistImage.
Response body
If successful, the response body contains an instance of PlaylistImage.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.