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

# comments_create

> Create a comment on a file. The `fields` parameter is required. Set `content` to the plain text of the comment.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://www.googleapis.com/drive/v3/files/{fileId}/comments"}</code></div>

```python gdrive_comments_create.py theme={null}
from charter.packs import gdrive

result = await gdrive.comments_create.ainvoke({"fileId": ..., "comment": ..., "fields": ...})
```

<Note>
  Requires `https://www.googleapis.com/auth/drive`. Costs 1 against the provider's own quota.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                          | Type     | Description         |
  | -------------------------------------------------------------- | -------- | ------------------- |
  | `fileId` <span className="required" title="required">\*</span> | `string` | The ID of the file. |
</div>

## Query parameters

<div className="reference-table">
  | Field                                                          | Type     | Description                                                                                                                                                                                                                            |
  | -------------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `fields` <span className="required" title="required">\*</span> | `string` | Required. The `fields` parameter must be set. To return the exact fields you need, see Return specific fields. Example: `comments(id,content,author,createdTime,modifiedTime,resolved,replies(id,content,author,createdTime,action))`. |
</div>

## Body

<div className="reference-table">
  | Field                                                           | Type                                                      | Description            |
  | --------------------------------------------------------------- | --------------------------------------------------------- | ---------------------- |
  | `comment` <span className="required" title="required">\*</span> | [Comment](/charter/charter/packs/gdrive/comments/objects#comment) | The comment to create. |
</div>
