Method: revisions.patch
HTTP リクエスト
PATCH https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
fileId |
string
ファイルの ID。
|
revisionId |
string
リビジョンの ID。
|
リクエスト本文
リクエストの本文には Revision
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には Revision
のインスタンスが含まれます。
認可スコープ
次の 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
一部のスコープは制限されているため、アプリで使用するにはセキュリティ評価が必要です。詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-04 UTC。
[null,null,["最終更新日 2024-09-04 UTC。"],[[["Updates a specific revision of a file using a `PATCH` request to the provided URL."],["Requires providing `fileId` and `revisionId` as path parameters to identify the target file and revision."],["The request body should contain a `Revision` object defining the desired changes, and a successful response will return the updated `Revision` object."],["Authorization is required using one of the specified OAuth scopes, some of which may require a security assessment for usage."]]],["This document outlines the process for updating a file revision using a PATCH request to the Google Drive API. The request targets a specific file and revision using their respective IDs in the URL path. The request body must contain a `Revision` instance, and a successful response will also return a `Revision` instance. This operation requires one of four specified OAuth scopes, some of which may need a security assessment.\n"]]