Updates the thumbnail image for an existing 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 id (the playlist image ID returned by playlistImages.list or playlistImages.insert). Do not specify snippet (fails with 400 snippetNotAllowed) and do not pass a part query parameter (fails with 400 unexpectedPart). The image must already exist on the playlist, or the request fails with 404 playlistImageNotFound; call playlistImages.insert to add a new image. The playlist's channel must be eligible for custom thumbnails, or the request fails with 403 forbidden.
For method-specific error responses, see playlistImages.update errors.
HTTP request
- Upload URI, for media upload requests:
PUT https://youtube.googleapis.com/upload/youtube/v3/playlistImages - Metadata URI, for metadata-only requests:
PUT https://youtube.googleapis.com/youtube/v3/playlistImages
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
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. |
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.