Method: parents.insert
একটি ফাইলের জন্য একটি মূল ফোল্ডার যোগ করে।
HTTP অনুরোধ
POST https://www.googleapis.com/drive/v2/files/{fileId}/parents
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
fileId | string ফাইলের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
enforceSingleParent (deprecated) | boolean বাতিল করা হয়েছে: একাধিক ফোল্ডারে ফাইল যোগ করা আর সমর্থিত নয়। পরিবর্তে shortcuts ব্যবহার করুন. |
supportsAllDrives | boolean অনুরোধ করা অ্যাপ্লিকেশনটি আমার ড্রাইভ এবং শেয়ার্ড ড্রাইভ উভয়কেই সমর্থন করে কিনা৷ |
supportsTeamDrives (deprecated) | boolean বাতিল করা হয়েছে: পরিবর্তে supportsAllDrives ব্যবহার করুন। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে ParentReference
এর একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, রেসপন্স বডিতে ParentReference
এর একটি নতুন তৈরি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/docs
-
https://www.googleapis.com/auth/drive
-
https://www.googleapis.com/auth/drive.appdata
-
https://www.googleapis.com/auth/drive.file
কিছু সুযোগ সীমাবদ্ধ এবং সেগুলি ব্যবহার করার জন্য আপনার অ্যাপের নিরাপত্তা মূল্যায়ন প্রয়োজন। আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This endpoint allows you to add a parent folder to a specified file using its `fileId`."],["The request requires a `ParentReference` in the body and may include optional query parameters like `supportsAllDrives`."],["Upon success, the response returns a newly created `ParentReference` object."],["Authorization is necessary using one of the provided OAuth scopes, some of which require a security assessment for app usage."]]],["This API endpoint uses a POST request to add a parent folder to a file specified by its `fileId` via a path parameter. The URL employs gRPC Transcoding. Optional query parameters, including `enforceSingleParent`, `supportsAllDrives`, and `supportsTeamDrives` allow modifications of the request. The request and response body both utilize the `ParentReference` instance. Authorization necessitates one of the listed OAuth scopes.\n"]]