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

> Update a comment with patch semantics. The `fields` parameter is required. Typically send a new `content`.

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

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

result = await gdrive.comments_update.ainvoke({"fileId": ..., "commentId": ..., "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.    |
  | `commentId` <span className="required" title="required">\*</span> | `string` | The ID of the comment. |
</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> | [PatchComment](/charter/charter/packs/gdrive/comments/objects#patchcomment) | The comment resource. Only populate fields you want to modify; typically `content`. |
</div>
