drive.comments.create
Creates a comment on a Google Drive file and returns the API response as JSON, requiring the file ID and fields parameter.
Instructions
Creates a comment on a file. 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 POST] — creates or triggers a change; 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: delete, get, list, update.
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. | |
| 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 |