Method: files.untrash
ট্র্যাশ থেকে একটি ফাইল পুনরুদ্ধার করে। শেয়ার্ড ড্রাইভ ফাইলের জন্য বর্তমানে প্রমাণীকৃত ব্যবহারকারীকে অবশ্যই ফাইলটির মালিক হতে হবে অথবা অন্ততপক্ষে অভিভাবকের একজন fileOrganizer
হতে হবে।
HTTP অনুরোধ
POST https://www.googleapis.com/drive/v2/files/{fileId}/untrash
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
fileId | string ট্র্যাশ করার জন্য ফাইলের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
supportsAllDrives | boolean অনুরোধ করা অ্যাপ্লিকেশনটি আমার ড্রাইভ এবং শেয়ার্ড ড্রাইভ উভয়কেই সমর্থন করে কিনা৷ |
supportsTeamDrives (deprecated) | boolean বাতিল করা হয়েছে: পরিবর্তে supportsAllDrives ব্যবহার করুন। |
includePermissionsForView | string প্রতিক্রিয়াতে কোন অতিরিক্ত ভিউ এর অনুমতি অন্তর্ভুক্ত করতে হবে তা নির্দিষ্ট করে। শুধুমাত্র published সমর্থিত. |
includeLabels | string প্রতিক্রিয়ার labelInfo অংশে অন্তর্ভুক্ত করার জন্য লেবেলের আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা৷ |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে File
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত 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.apps.readonly
-
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-তে শেষবার আপডেট করা হয়েছে।"],[[["Restores a file from the trash, requiring the user to be the owner or a fileOrganizer."],["Uses an HTTP POST request to the endpoint `https://www.googleapis.com/drive/v2/files/{fileId}/untrash` with the file ID as a path parameter."],["Accepts optional query parameters to support various drives and include additional information in the response."],["Returns the restored file details in the response body if successful, requiring specific authorization scopes for access."]]],["This document outlines the process for restoring a file from the trash using the Google Drive API. The key action is to send a `POST` request to `https://www.googleapis.com/drive/v2/files/{fileId}/untrash`, where `fileId` identifies the file. The request body must be empty, but it can include `supportsAllDrives`, `includePermissionsForView`, and `includeLabels` as query parameters. Authorization requires specific OAuth scopes. A successful response returns a `File` object. The authenticated user must be the file's owner.\n"]]