set-comment-moderation-status
Control YouTube comment visibility by setting status to published, held for review, or rejected. Requires confirmation; optionally bans the author.
Instructions
Set the moderation status of one or more comments on your videos — publish, hold for review, or reject (hide from public view; the current replacement for the removed markAsSpam method). Costs 50 quota units. Requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually apply the moderation status | |
| banAuthor | No | Also ban the author from commenting on your channel | |
| commentIds | Yes | Comment IDs to moderate | |
| moderationStatus | Yes | Status to apply |