[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-09-03。"],[[["Inserts a permission for a file or shared drive, but concurrent operations on the same file aren't supported."],["Uses an HTTP POST request to `https://www.googleapis.com/drive/v2/files/{fileId}/permissions` to insert the permission."],["Requires providing `fileId` as a path parameter and allows optional query parameters like `emailMessage`, `moveToNewOwnersRoot`, and others for customization."],["The request body should contain a `Permission` object, and a successful response will return the newly created `Permission` object."],["Requires authorization with one of the following OAuth scopes: `https://www.googleapis.com/auth/docs`, `https://www.googleapis.com/auth/drive`, or `https://www.googleapis.com/auth/drive.file`."]]],["This document outlines the process of inserting a permission for a file or shared drive via a `POST` request to the Google Drive API. The request requires a `fileId` path parameter. Query parameters include options for email notifications (`sendNotificationEmails`, `emailMessage`), ownership transfer (`moveToNewOwnersRoot`), and shared drive support (`supportsAllDrives`). The request body contains permission details and successful requests return the created permission instance. Authentication requires specific OAuth scopes like `https://www.googleapis.com/auth/drive`. Concurrent permission changes are not supported.\n"]]