[[["容易理解","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 (世界標準時間)。"],[[["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"]]