Skip to main content

comments

Overview

Namecomments
TypeResource
Idgoogleworkspace.drive.comments

Fields

NameDatatypeDescription
idstringThe ID of the comment.
resolvedbooleanWhether the comment has been resolved by one of its replies.
contentstringThe plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.
deletedbooleanWhether the comment has been deleted. A deleted comment has no content.
kindstringIdentifies what kind of resource this is. Value: the fixed string "drive#comment".
repliesarrayThe full list of replies to the comment in chronological order.
quotedFileContentobjectThe file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
htmlContentstringThe content of the comment with HTML formatting.
anchorstringA region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies.
authorobjectInformation about a Drive user.
createdTimestringThe time at which the comment was created (RFC 3339 date-time).
modifiedTimestringThe last time the comment or any of its replies was modified (RFC 3339 date-time).

Methods

NameAccessible byRequired ParamsDescription
getSELECTcommentId, fileIdGets a comment by ID.
listSELECTfileIdLists a file's comments.
createINSERTfileIdCreates a comment on a file.
deleteDELETEcommentId, fileIdDeletes a comment.
updateEXECcommentId, fileIdUpdates a comment with patch semantics.