Method: liveChatMessages.transition

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.

HTTP request

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

The URL uses gRPC Transcoding 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.