Method: comments.create
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["This endpoint creates a comment on a specified Google Drive file using an HTTP POST request."],["You need to provide the file ID as a path parameter and a `Comment` object in the request body."],["A successful request returns a `Comment` object representing the newly created comment."],["Authorization requires one of the specified OAuth scopes, potentially including a security assessment for restricted scopes."]]],["This describes creating a comment on a file using the Google Drive API. A `POST` request is sent to `https://www.googleapis.com/drive/v3/files/{fileId}/comments`, where `fileId` is the file's ID. The request body contains a `Comment` instance, and the response, upon success, returns a new `Comment` instance. The request requires one of two authorization scopes and the `fields` parameter. Use of specific scopes may require security assessment.\n"]]