Method: liveChatModerators.insert

Adds a standard moderator to a live chat. The moderator role applies to all live chats on the channel that owns the live chat.

Requests must be authorized by the owner of the live chat's channel or a user with channel-level comment management permissions (such as a YouTube Studio Manager or Editor). In the request body, provide a liveChatModerator resource with values for the following required properties:

  • snippet.liveChatId
  • snippet.moderatorDetails.channelId

Adding a user who is already a standard or managing moderator succeeds without changing their role and returns the moderator resource.

For method-specific error responses, see liveChatModerators.insert errors. For code examples, see liveChatModerators.insert code snippets.

HTTP request

POST https://youtube.googleapis.com/youtube/v3/liveChat/moderators

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
part[]

string

Required. The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet.

Request body

The request body contains an instance of LiveChatModerator.

Response body

If successful, the response body contains a newly created instance of LiveChatModerator.

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.