Method: drives.create
בקשת HTTP
POST https://www.googleapis.com/drive/v3/drives
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של שאילתה
פרמטרים |
requestId |
string
חובה. מזהה, כמו מזהה ייחודי אוניברסלי (UUID) אקראי, שמזהה באופן ייחודי את הבקשה של המשתמש ליצור אחסון שיתופי באופן עצמאי. אם מדובר בבקשה חוזרת של אותו משתמש ועם אותו מזהה בקשה, כדי שזה לא ייווצרו כפילויות, לא יהיה ניסיון ליצור את אותו אחסון שיתופי. אם האחסון השיתופי כבר קיים, תוחזר שגיאת 409.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Drive
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע חדש של Drive
שנוצר.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/drive
חלק מההיקפים מוגבלים ומחייבים בדיקת אבטחה כדי שהאפליקציה תוכל להשתמש בהם. למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-03 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-03 (שעון UTC)."],[[["Creates a new shared drive using a POST request to the specified endpoint."],["Requires a unique `requestId` to ensure idempotent creation and avoid duplicates."],["The request body should contain a `Drive` resource defining the shared drive properties."],["A successful response returns the newly created `Drive` resource."],["Requires authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document details the process for creating a shared drive via an API. A `POST` request is sent to the specified URL. The request must include a unique `requestId` as a query parameter for idempotent creation. The request body requires a `Drive` instance. Upon success, a new `Drive` instance is returned in the response. The `https://www.googleapis.com/auth/drive` authorization scope is required for this operation.\n"]]