Method: playlists.update

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[]

string

Required. Identifies the playlist resource properties that the write operation sets as well as the properties that the API response includes.

Valid values are contentDetails, id, localizations, player, snippet, and status. You must include snippet and any other writable part (status or localizations) provided in the request body.

Omitted snippet.description, snippet.defaultLanguage, and localizations values are cleared, while omitted status.privacyStatus and status.podcastStatus values are preserved.

onBehalfOfContentOwner

string

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/youtube
  • https://www.googleapis.com/auth/youtubepartner
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.