- [HTTP request](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt#body.HTTP_TEMPLATE)
- [Query parameters](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt#body.QUERY_PARAMETERS)
- [Request body](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt#body.request_body)
- [Response body](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt#body.response_body)
- [Authorization scopes](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt#body.aspect)
- [Try it!](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt#try-it)

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`](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams.md.txt#LiveStream.FIELDS.status) property is `active` before moving a broadcast to the `testing` or `live` state.

For method-specific error responses, see [liveBroadcasts.transition errors](https://developers.google.com/youtube/data/reference/rest/v3/errors.md.txt#liveBroadcasts_youtube.liveBroadcasts.transition). For code examples, see [liveBroadcasts.transition code snippets](https://developers.google.com/youtube/data/code_samples/code_snippets.md.txt?method=liveBroadcasts.transition).

### HTTP request

`POST https://youtube.googleapis.com/youtube/v3/liveBroadcasts/transition`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Query parameters

| Parameters ||
|---|---|
| `id` | `string` Required. Unique ID of the broadcast whose status you are changing. |
| `broadcastStatus` | `enum` Required. The status to assign to the broadcast. Valid values are `complete` (the broadcast is over and YouTube stops transmitting video), `live` (the broadcast is visible to its audience), and `testing` (start testing the broadcast; YouTube transmits video to the monitor stream, valid only when `contentDetails.monitorStream.enableMonitorStream` is `true`). Before changing status to `testing` or `live`, verify that the bound stream's `status.streamStatus` is `active`. Valid values of this enum field are: - `testing` - `live` - `complete` |
| `part[]` | `string` Required. A comma-separated list of one or more `liveBroadcast` resource properties that the API response includes. Valid values are `id`, `snippet`, `contentDetails`, `monetizationDetails`, `status`, and `statistics`. |
| `onBehalfOfContentOwner` | `string` Intended exclusively for YouTube content partners and valid only in an [authorized request](https://developers.google.com/youtube/data/guides/authentication.md.txt). 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](https://developers.google.com/youtube/data/guides/authentication.md.txt). 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 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/youtube`
- `https://www.googleapis.com/auth/youtube.force-ssl`

For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).