[[["易于理解","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-04。"],[[["Creates a permission for a file or shared drive, with the last update applied in case of concurrent operations."],["Sends a `POST` request to `https://www.googleapis.com/drive/v3/files/{fileId}/permissions` to create the permission."],["Requires specifying the `fileId` as a path parameter and offers various optional query parameters for customization like email notifications and ownership transfer."],["The request body should contain a `Permission` object defining the access rights, and the successful response will return the created `Permission` object."],["Needs authorization with either `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.file` scope."]]],["This document details the process for creating a file or shared drive permission using a `POST` HTTP request to the specified Google Drive API endpoint. The `fileId` path parameter identifies the target. Various query parameters, such as `sendNotificationEmail`, `transferOwnership`, and `moveToNewOwnersRoot`, configure the permission's behavior. The request and response bodies are instances of the `Permission` resource. Authorization requires specific OAuth scopes, and concurrent operations on the same file are unsupported.\n"]]