Method: liveBroadcasts.update

Updates a broadcast.

In the LiveBroadcast request body, specify id to identify the broadcast. Other property behavior depends on the part parameter:

  • snippet: Requires snippet.scheduledStartTime; omitted title, description, categoryId, and scheduledEndTime values preserve their existing values.
  • status: Omitting status.privacyStatus preserves its existing value. You can't modify status.selfDeclaredMadeForKids in an update.
  • contentDetails: Requires monitorStream.enableMonitorStream (and monitorStream.broadcastStreamDelayMs when enableMonitorStream is true). Omitting enableClosedCaptions and closedCaptionsType disables captions before testing; once testing or live starts, omitting them fails if captions are enabled on the broadcast and succeeds if captions are already disabled. 360 broadcasts must resend projection: "360" after testing starts. Omitted enableEmbed, enableDvr, recordFromStart, enableAutoStart, enableAutoStop, latencyPreference, and availabilityConfig values preserve their existing values.
  • monetizationDetails: Available for YouTube Partner Program (YPP) channels; requires adsMonetizationStatus (and cuepointSchedule with enabled when adsMonetizationStatus is on), except for pause-only updates specifying only cuepointSchedule.pauseAdsUntil.

For method-specific error responses, see liveBroadcasts.update errors. For code examples, see liveBroadcasts.update code snippets.

HTTP request

PUT https://youtube.googleapis.com/youtube/v3/liveBroadcasts

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
part[]

string

Required. Identifies the properties that the write operation sets as well as the properties that the API response includes. Settable parts are contentDetails, monetizationDetails, snippet, and status. Response parts are contentDetails, id, monetizationDetails, snippet, statistics, and status.

Properties omitted from a specified writable part generally keep their existing values, except that omitting snippet.scheduledStartTime fails, omitting contentDetails.monitorStream.enableMonitorStream (or broadcastStreamDelayMs when the monitor stream is enabled) fails, and omitting closed-caption settings disables captions before testing.

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 access data for linked channels. The CMS account must be linked to the specified YouTube content owner.

onBehalfOfContentOwnerChannel

string

Intended exclusively for YouTube content partners and valid only in an authorized request. Specifies the YouTube channel ID of the channel to act on behalf of for this broadcast request. Required whenever onBehalfOfContentOwner is set, and usable only in conjunction with that parameter. The CMS account must be linked to the content owner specified by onBehalfOfContentOwner, and that content owner must link the channel specified by onBehalfOfContentOwnerChannel.

Request body

The request body contains an instance of LiveBroadcast.

Response body

If successful, the response body contains an instance of LiveBroadcast.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/youtube
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.