liveStreams

PUT /youtube/v3/liveStreams

Changed on

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: id and snippet.title (snippet must be included in the part query parameter). * Writable properties: snippet.title and snippet.description. Omitting snippet.description clears 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.

Request

  • Base URL
    https://youtube.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/youtube
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/youtube
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/youtube.force-ssl
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/youtube.force-ssl

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

part, string[] required

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 part values are cdn, contentDetails, id, snippet, and status. 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, string

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; without it, the request targets the authenticated user's own channel.

onBehalfOfContentOwnerChannel, string

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 onBehalfOfContentOwner to target a channel managed by the content owner. This parameter can only be used with onBehalfOfContentOwner, the authenticating CMS account must be linked to that content owner, and the specified channel must be linked to that content owner. 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

LiveStream required

A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that is broadcast to YouTube users. Once created, a liveStream resource can be bound to one or more liveBroadcast resources.

cdn, CdnSettings

Brief description of the live stream cdn settings.

contentDetails, LiveStreamContentDetails

Detailed settings of a stream.

etag, string

Output only. Etag of this resource.

id, string

The ID that YouTube assigns to uniquely identify the stream.

kind, string

Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".

snippet, LiveStreamSnippet
status, LiveStreamStatus

Brief description of the live stream status.

Response

Successful response

LiveStream required

A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that is broadcast to YouTube users. Once created, a liveStream resource can be bound to one or more liveBroadcast resources.

cdn, CdnSettings

Brief description of the live stream cdn settings.

contentDetails, LiveStreamContentDetails

Detailed settings of a stream.

etag, string

Output only. Etag of this resource.

id, string

The ID that YouTube assigns to uniquely identify the stream.

kind, string

Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".

snippet, LiveStreamSnippet
status, LiveStreamStatus

Brief description of the live stream status.

Changes

    • info

      the security scope https://www.googleapis.com/auth/youtube was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/youtube was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/youtube.force-ssl was removed from the endpoint's security scheme Oauth2

    1 more change in this revision