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

Transitions the status of a live chat poll message to close an active poll.

Setting `status` to `closed` ends an active poll and returns the final results when `part` includes `snippet`. Before calling this method, confirm that `snippet.pollDetails.status` is `active`. The request must be authorized by the channel owner or content manager.

For method-specific error responses, see [liveChatMessages.transition errors](https://developers.google.com/youtube/data/reference/rest/v3/errors.md.txt#liveChatMessages_youtube.liveChatMessages.transition).

### HTTP request

`POST https://youtube.googleapis.com/youtube/v3/liveChat/messages/transition`

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

### Query parameters

| Parameters ||
|---|---|
| `id` | `string` Required. The ID that uniquely identifies the chat message event to transition. |
| `status` | `enum` Required. The target status for the chat message event. You can only transition to `closed` (ending the poll), and the poll's `snippet.pollDetails.status` must be `active`. This enum field has the one valid value: - `closed` |
| `part[]` | `string` Optional. The `part` parameter specifies the `liveChatMessage` resource parts that the API response includes. Supported values are `id`, `snippet`, and `authorDetails`. Include `snippet` to return the final poll result in the response body. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `LiveChatMessage`.

### 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).