[[["เข้าใจง่าย","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-05 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"]]