Modifies a playlist item. For example, you can update the item's position in the playlist or its contentDetails.note.
In the PlaylistItem request body, specify values for id, snippet.playlistId, and snippet.resourceId (with kind set to youtube#video and videoId set to the video ID). You can set snippet.position (for manually sorted playlists) and contentDetails.note (up to 280 characters, when contentDetails is included in part).
If the playlist uses manual sorting and the request omits snippet.position, the item moves to position 0. If part includes contentDetails and the request omits contentDetails.note, any existing note is cleared. All other request body fields (including deprecated contentDetails.startAt and contentDetails.endAt) are ignored.
For method-specific error responses, see playlistItems.update errors. For code examples, see playlistItems.update code snippets.
HTTP request
PUT https://youtube.googleapis.com/youtube/v3/playlistItems
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
part[] |
Required. Identifies both the properties that the write operation sets and the properties that the API response includes. Valid values are Updating a part overwrites mutable properties in that part. For example, if |
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. The authenticating CMS account must be linked to the specified content owner. |
Request body
The request body contains an instance of PlaylistItem.
Response body
If successful, the response body contains an instance of PlaylistItem.
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.