Sets the moderation status of one or more comments.
Requires OAuth 2.0 authentication and owner privileges.
Usage
set_comment_moderation_status(
comment_ids,
moderation_status,
ban_author = FALSE
)
Arguments
Character vector. The IDs of the comments to update.
- moderation_status
Character. Valid values are 'heldForReview', 'published', 'rejected'.
- ban_author
Logical. Whether to ban the author from commenting on the channel. Optional.
Value
A list containing the API response.
Examples
if (FALSE) { # \dontrun{
# Set API token via yt_oauth() first
set_comment_moderation_status(comment_ids = "Ugz...", moderation_status = "rejected")
} # }