Method: projects.locations.repositories.pullRequests.pullRequestComments.patch

Updates a pull request comment.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
pullRequestComment.name

string

Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pullRequest}/pullRequestComments/{comment_id}

Query parameters

Parameters
updateMask

string (FieldMask format)

Optional. Field mask is used to specify the fields to be overwritten in the pull request comment resource by the update. Updatable fields are body.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of PullRequestComment.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • securesourcemanager.prcomments.update

For more information, see the IAM documentation.