Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube API: Unable to add video to playlist

$
0
0

I'm trying to add a video to my playlist and got the following response.

{"code" : 400,"errors" : [ {"domain" : "youtube.playlistItem","message" : "Playlist should use manual sorting to support position.","reason" : "manualSortRequired"  } ],"message" : "Playlist should use manual sorting to support position."}

I went through the youtube API documentation to understand this error.https://developers.google.com/youtube/v3/docs/errors#playlistItems_youtube.playlistItems.insert

Here, the description of this error is as following

The request attempts to set the playlist item's position, but the playlist does not use manual sorting. (For example, playlist items might be sorted by date or popularity.) You can address the error by removing the snippet.position element from the resource that the request is inserting. If you want the playlist item to have a particular position in the list, you need to first update the playlist's Ordering option to Manual in the playlist's settings. This settings can be adjusted in the YouTube Video Manager.

I am unable to see Ordering option under playlist settings after navigating to YouTube Video Manager. Any way to resolve this error other than removing snippet.position.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>