LiveChatModerators: insert

Adds a new moderator for the chat. The request must be authorized by the owner of the live chat's channel.

Common use cases

Request

HTTP request

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

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/youtube
https://www.googleapis.com/auth/youtube.force-ssl

Parameters

The following table lists the parameters that this query supports. All of the parameters listed are query parameters.

Parameters
Required parameters
part string
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

Provide a liveChatModerator resource in the request body. For that resource:

  • You must specify a value for these properties:

    • snippet.moderatorDetails.channelId
    • snippet.liveChatId

Response

If successful, this method returns a liveChatModerator resource in the response body.

Errors

The API does not define any error messages that are unique to this API method. However, this method could still return general API errors listed in the error message documentation.

Try it!

Use the APIs Explorer to call this API and see the API request and response.