[[["容易理解","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"]],["上次更新時間: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"]]