Method: comments.update

Modifies a comment.

Comments on posts are in a pilot phase with access limited to select launch partners (approved Google Cloud projects). Broader public API access is planned for General Availability in 2027.

Provide a comment resource in the request body with id (required), and set snippet.textOriginal, snippet.viewerRating (like or dislike), or both. Setting only snippet.viewerRating to none isn't supported. Editing the text of a GIF comment isn't allowed.

For error details, see comments.update errors. For code examples, see comments.update code snippets.

HTTP request

PUT https://youtube.googleapis.com/youtube/v3/comments

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
part[]

string

Required. The part parameter identifies the properties that the API response includes. You must include at least snippet in the parameter value, because that part contains all of the properties that the API request can update. Valid values are id and snippet.

Request body

The request body contains an instance of Comment.

Response body

If successful, the response body contains an instance of Comment.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.