הודעה בטקסט פשוט בהתאמה אישית שתיכלל בהתראות באימייל.
enforceSingleParent (deprecated)
boolean
הוצאה משימוש: אפשר לקרוא פרטים נוספים בכתובת moveToNewOwnersRoot.
moveToNewOwnersRoot
boolean
הפרמטר הזה ייכנס לתוקף רק אם הפריט לא נמצא באחסון שיתופי ואם הבקשה מנסה להעביר את הבעלות על הפריט. אם המדיניות מוגדרת לערך true, הפריט יועבר לתיקיית השורש 'האחסון שלי' של הבעלים החדש וכל ההורים הקודמים יוסרו. אם המדיניות מוגדרת לערך false, ההורים לא משתנים.
sendNotificationEmails
boolean
האם לשלוח התראות באימייל בעת שיתוף עם משתמשים או קבוצות. המערכת מתעלמת מהפרמטר הזה והודעת אימייל נשלחת אם הערך של role הוא owner.
supportsAllDrives
boolean
האם האפליקציה שביקשה תמיכה תומכת גם בתיקייה 'האחסון שלי' וגם בתיקיות אחסון שיתופי.
supportsTeamDrives (deprecated)
boolean
הוצאה משימוש: יש להשתמש במקום זאת ב-supportsAllDrives.
useDomainAdminAccess
boolean
שולחים את הבקשה כאדמין של דומיין. אם המדיניות מוגדרת כ-True, מגיש הבקשה יקבל גישה אם הפרמטר של מזהה הקובץ מתייחס לאחסון שיתופי, ומגיש הבקשה הוא אדמין בדומיין שאליו האחסון השיתופי שייך.
[[["התוכן קל להבנה","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-03 (שעון UTC)."],[[["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"]]