Updates a video stream. If the properties that you want to change can't be updated, create a new stream with the desired settings.
Specify the following properties in the LiveStream request body:
- Required:
idandsnippet.title(snippetmust be included in thepartquery parameter). - Writable properties:
snippet.titleandsnippet.description. Omittingsnippet.descriptionclears its existing value.
Both cdn and contentDetails are optional in the request body. If you include either object (with its corresponding part in part), its properties must match the existing stream because cdn.frameRate, cdn.ingestionType, cdn.resolution, and contentDetails.isReusable can't be changed after creation. If you include contentDetails for a non-reusable stream, explicitly set contentDetails.isReusable to false because it defaults to true.
For method-specific error responses, see liveStreams.update errors. For code examples, see liveStreams.update code snippets.
HTTP request
PUT https://youtube.googleapis.com/youtube/v3/liveStreams
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
part[] |
Required. Serves two purposes in this operation: it identifies the properties that the write operation sets as well as the properties that the API response includes. Valid This method overrides the existing values for all mutable properties contained in any parts that the parameter value specifies. If the request body omits a value for a mutable property, the existing value for that property is removed. |
onBehalfOfContentOwner |
This parameter is intended exclusively for YouTube content partners. Indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. To target a channel managed by the content owner, also specify |
onBehalfOfContentOwnerChannel |
This parameter can only be used in a properly authorized request, and is intended exclusively for YouTube content partners. Specifies the YouTube channel ID of the managed channel for the live stream request. Specify this parameter together with This parameter allows content owners to authenticate once and perform actions on behalf of the specified channel without providing authentication credentials for each separate channel. |
Request body
The request body contains an instance of LiveStream.
Response body
If successful, the response body contains an instance of LiveStream.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.