Modifies a playlist. For example, you can change a playlist's title, description, or privacy status.
In the Playlist request body, specify id and snippet.title (required). You can also set snippet.description, snippet.defaultLanguage, status.privacyStatus, status.podcastStatus (enabling requires a square playlist image), and localizations (requires snippet.defaultLanguage and localizations in part). Every resource part included in the request body must also be listed in the part parameter.
Omitting snippet.description, snippet.defaultLanguage, or localizations clears their existing values (including when localizations is omitted from part). Omitting status.privacyStatus or status.podcastStatus preserves their existing values. Only standard user playlists (PL prefix) and legacy favorites playlists (FL prefix) can be updated; other playlist types fail with 400 playlistOperationUnsupported.
For method-specific error responses, see playlists.update errors. For code examples, see playlists.update code snippets.
HTTP request
PUT https://youtube.googleapis.com/youtube/v3/playlists
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
part[] |
Required. Identifies the Valid values are Omitted |
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 manage playlists for linked channels. |
Request body
The request body contains an instance of Playlist.
Response body
If successful, the response body contains an instance of Playlist.
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.