> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# Objects

> Every object and enum the Comments tools accept.

## Model tree

<div className="model-tree"><div className="model-tree-scroll"><div className="tree-node"><a href="#comment">Comment</a><div className="tree-children"><div className="tree-node"><a href="#quotedfilecontent">QuotedFileContent</a></div></div></div><div className="tree-node"><a href="#patchcomment">PatchComment</a><div className="tree-children"><div className="tree-node"><a href="#quotedfilecontent">QuotedFileContent</a></div></div></div></div></div>

## Comment

A comment on a file. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file.

<div className="reference-table">
  | Field                                                           | Type                                    | Description                                                                                                                                                            |
  | --------------------------------------------------------------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `content` <span className="required" title="required">\*</span> | `string`                                | The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed.                                            |
  | `anchor`                                                        | `string`                                | A region of the document represented as a JSON string. For details on defining anchor properties, refer to Manage comments and replies.                                |
  | `quotedFileContent`                                             | [QuotedFileContent](#quotedfilecontent) | The 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. |
</div>

## QuotedFileContent

The 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.

<div className="reference-table">
  | Field      | Type     | Description                                                                          |
  | ---------- | -------- | ------------------------------------------------------------------------------------ |
  | `mimeType` | `string` | The MIME type of the quoted content.                                                 |
  | `value`    | `string` | The quoted content itself. This is interpreted as plain text if set through the API. |
</div>

## PatchComment

Request body for Drive `comments.update`.

<div className="reference-table">
  | Field               | Type                                    | Description                                                                                                                                                            |
  | ------------------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `content`           | `string`                                | The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed.                                            |
  | `anchor`            | `string`                                | A region of the document represented as a JSON string. For details on defining anchor properties, refer to Manage comments and replies.                                |
  | `quotedFileContent` | [QuotedFileContent](#quotedfilecontent) | The 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. |
</div>
