Resource: Comment
A comment on a file in Google Drive.
| JSON representation |
|---|
{ "commentId": string, "kind": string, "createdDate": string, "modifiedDate": string, "fileId": string, "fileTitle": string, "status": string, "anchor": string, "replies": [ { object ( |
| Fields | |
|---|---|
commentId |
The ID of the comment. |
kind |
This is always drive#comment. |
createdDate |
The date when this comment was first created. |
modifiedDate |
The date when this comment or any of its replies were last modified. |
fileId |
The file which this comment is addressing. |
fileTitle |
The title of the file which this comment is addressing. |
status |
The status of this comment. Status can be changed by posting a reply to a comment with the desired status. Possible values are:
|
anchor |
A region of the document represented as a JSON string. For details on defining anchor properties, refer to Manage comments and replies. |
replies[] |
Replies to this post. |
author |
The user who wrote this comment. |
deleted |
Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed. |
selfLink |
A link back to this comment. |
htmlContent |
HTML formatted content for this comment. |
content |
The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content. |
context |
The context of the file which is being commented on. |
context.type |
The MIME type of the context snippet. |
context.value |
Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. |
Methods |
|
|---|---|
|
Deletes a comment. |
|
Gets a comment by ID. |
|
Creates a new comment on the given file. |
|
Lists a file's comments. |
|
Updates an existing comment. |
|
Updates an existing comment. |