v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-136454227.5 KB
comments

Updates a comment with patch semantics. For more information, see Manage comments and replies. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fields.

patch/files/{fileId}/comments/{commentId}

Path parameters

fileIdstring required

The ID of the file.

commentIdstring required

The ID of the comment.

Request body

htmlContentstring

Output only. The content of the comment with HTML formatting.

assigneeEmailAddressstring

Output only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.

mentionedEmailAddressesstring[]

Output only. A list of email addresses for users mentioned in this comment. If no users are mentioned, the list is empty.

idstring

Output only. The ID of the comment.

modifiedTimestring date-time

The last time the comment or any of its replies was modified (RFC 3339 date-time).

anchorstring

A region of the document represented as a JSON string. For details on defining anchor properties, refer to Manage comments and replies.

deletedboolean

Output only. Whether the comment has been deleted. A deleted comment has no content.

contentstring

The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.

createdTimestring date-time

The time at which the comment was created (RFC 3339 date-time).

resolvedboolean

Output only. Whether the comment has been resolved by one of its replies.

kindstring

Output only. Identifies what kind of resource this is. Value: the fixed string "drive#comment".

Response

Successful response