'Q: set thumbnail of a playlist?

Many answers about using the Youtube Data API v3 to get the thumbnail of a playlist; and many answers for how to get or set the thumbnail of a video.

But none about how to set the thumbnail of a playlist. The documentation shows nothing and no searches into the API documentation or Stack Overflow find the question or its answers.

I tried using the thumbnails().set() method for setting thumbnails to videos, but that returns a permission denied error indicating that using playlist IDs in its request for video IDs is not a good monkey patch.

Please help.



Solution 1:[1]

As mentioned in the comments, if you are anyway interested in choosing the playlist thumbnail with a thumbnail video of the playlist in an automatic way:

Go to your playlist webpage: https://www.youtube.com/playlist?list=PLAYLIST_ID

Open the Network tab of your web-browser by using Ctrl + Shift + E.

Choose a video and "Set as playlist thumbnail". You should now see a request to edit_playlist, copy it as cURL (by right-clicking).

You can re-execute this cURL request with any playlist id (playlistId in the --data-raw parameter) and any video id of the given playlist (thumbnailVideoId).

Solution 2:[2]

My original question is invalid.

YouTube allows users to set thumbnails of videos to be any properly formatted image. YouTube then only allows users to set a specific video thumbnail as the playlist thumbnail. It is not possible to set an image as the thumbnail of the playlist unless it is a thumbnail of a video in that playlist; and in that use case the video is associated to the playlist for the representative thumbnail.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Benjamin Loison
Solution 2