Treść żądania zawiera wystąpienie elementu Comment.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję Comment.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
Niektóre zakresy są objęte ograniczeniami, a aplikacja może z nich korzystać dopiero po sprawdzeniu zabezpieczeń. Więcej informacji znajdziesz w przewodniku po autoryzacji.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-03 UTC."],[[["Creates a new comment on a specified file using an HTTP POST request."],["Requires providing the file ID as a path parameter and a `Comment` object in the request body."],["Returns the newly created `Comment` object in the response body if successful."],["Needs authorization with one of the specified OAuth scopes, some of which might require a security assessment."]]],["This document details the process for creating a new comment on a file using the Google Drive API. It involves sending a `POST` request to a specified URL, including the `fileId` as a path parameter. The request body must contain a `Comment` instance. A successful response will return the newly created `Comment`. Authorization requires one of the specified OAuth scopes: `docs`, `drive`, or `drive.file`. Access to some scopes might be restricted.\n"]]