Set Moderation Status

Sets the moderation status of one or more comments

3 variables
0 variables

Sets the moderation status of one or more comments. The API request must be authorized by the owner of the channel or video associated with the comments

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • See, edit, and permanently delete your YouTube videos, ratings, comments and captions

Input

This building block consumes 3 input parameters

  = Parameter name
  = Format

id STRING Required

The id parameter specifies a comma-separated list of IDs that identify the comments for which you are updating the moderation status

moderationStatus ENUMERATION Required

Identifies the new moderation status of the specified comments

banAuthor BOOLEAN

The banAuthor parameter lets you indicate that you want to automatically reject any additional comments written by the comment's author. Set the parameter value to true to ban the author.

Note: This parameter is only valid if the moderationStatus parameter is also set to rejected