منسوخ شده: برای جزئیات بیشتر به moveToNewOwnersRoot مراجعه کنید.
moveToNewOwnersRoot
boolean
این پارامتر تنها در صورتی اعمال میشود که مورد در درایو مشترک نباشد و درخواست برای انتقال مالکیت آن مورد تلاش کند. اگر روی true تنظیم شود، مورد به پوشه ریشه My Drive مالک جدید منتقل میشود و تمام والدین قبلی حذف میشوند. اگر روی false تنظیم شود، والدین تغییر نمی کنند.
sendNotificationEmail
boolean
آیا هنگام اشتراکگذاری با کاربران یا گروهها، ایمیل اعلان ارسال شود. این پیشفرض برای کاربران و گروهها درست است و برای سایر درخواستها مجاز نیست. برای انتقال مالکیت نباید غیرفعال شود.
supportsAllDrives
boolean
اینکه آیا برنامه درخواست کننده هم از My Drives و هم درایوهای مشترک پشتیبانی می کند.
supportsTeamDrives (deprecated)
boolean
منسوخ شده: به جای آن از supportsAllDrives استفاده کنید.
transferOwnership
boolean
اینکه آیا برای انتقال مالکیت به کاربر مشخص شده و تنزل رتبه مالک فعلی به یک نویسنده. این پارامتر به عنوان تأیید عارضه جانبی مورد نیاز است.
useDomainAdminAccess
boolean
درخواست را به عنوان مدیر دامنه صادر کنید. اگر روی true تنظیم شود، اگر پارامتر ID فایل به یک درایو مشترک اشاره کند و درخواست کننده مدیر دامنه ای باشد که درایو مشترک به آن تعلق دارد، به درخواست کننده اجازه دسترسی داده می شود.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-10-30 بهوقت ساعت هماهنگ جهانی."],[[["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"]]