drive.comments.update
Modify an existing Google Drive comment using patch semantics. Set fields to return only needed data, or dry-run to preview the request before sending.
Instructions
Updates a comment with patch semantics. For more information, see Manage comments and replies. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fields [HTTP PATCH] — updates the resource; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON Comment object accepting anchor, assigneeEmailAddress, author, content, createdTime, deleted, htmlContent, id and 6 more fields; pass it via params or whole via body_file Siblings over the same resource: create, delete, get, list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| fileId | Yes | [URL path segment] The ID of the file. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON Comment object. | |
| commentId | Yes | [URL path segment] The ID of the comment. | |
| request_body | No | Request body of type Comment: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| kind | No | ||
| anchor | No | ||
| author | No | ||
| content | No | ||
| deleted | No | ||
| replies | No | ||
| resolved | No | ||
| createdTime | No | ||
| htmlContent | No | ||
| modifiedTime | No | ||
| quotedFileContent | No | ||
| assigneeEmailAddress | No | ||
| mentionedEmailAddresses | No |