Method: comments.create
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間: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"]]