REST Resource: liveChatModerators

Resource: LiveChatModerator

A liveChatModerator resource represents a moderator for a YouTube live chat. A chat moderator has the ability to ban or unban users from a chat, remove messages, and perform other administrative actions for the live chat.

JSON representation
{
  "kind": string,
  "etag": string,
  "id": string,
  "snippet": {
    "moderatorDetails": {
      "channelId": string,
      "channelUrl": string,
      "displayName": string,
      "profileImageUrl": string
    },
    "liveChatId": string
  }
}
Fields
kind

string

Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#liveChatModerator".

etag

string

Output only. Etag of this resource.

id

string

Output only. The ID that YouTube assigns to uniquely identify the moderator for a specific live chat. Pass this value to liveChatModerators.delete.

snippet

object

Required. The snippet object contains basic details about the moderator.

snippet.moderatorDetails

object

Required. Details about the moderator. In liveChatModerators.insert requests, set only channelId; the API populates channelUrl, displayName, and profileImageUrl in the response.

snippet.moderatorDetails.channelId

string

The YouTube channel ID.

snippet.moderatorDetails.channelUrl

string

The channel's URL.

snippet.moderatorDetails.displayName

string

The channel's display name.

snippet.moderatorDetails.profileImageUrl

string

The channel's avatar URL.

snippet.liveChatId

string

Required. Input only. The ID of a live chat on the channel that the moderator has privileges to administer. The moderator role applies to all live chats on that channel. The live chat ID associated with a broadcast is returned in the liveBroadcast resource's snippet.liveChatId property.

Specify this property in liveChatModerators.insert requests. API responses don't populate this property.

Methods

delete

Removes a moderator from a live chat.

insert

Adds a standard moderator to a live chat.

list

Lists standard moderators for a live chat.