Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. Verify that the bound stream's status.streamStatus property is active before moving a broadcast to the testing or live state.
For method-specific error responses, see liveBroadcasts.transition errors. For code examples, see liveBroadcasts.transition code snippets.
HTTP request
POST https://youtube.googleapis.com/youtube/v3/liveBroadcasts/transition
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id |
Required. Unique ID of the broadcast whose status you are changing. |
broadcastStatus |
Required. The status to assign to the broadcast. Valid values are Valid values of this enum field are:
|
part[] |
Required. A comma-separated list of one or more |
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 CMS account must be linked to the specified YouTube content owner. |
onBehalfOfContentOwnerChannel |
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 |
Request body
The request body must be empty.
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/youtubehttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.