Method: revisions.patch
Aktualisiert eine Überarbeitung.
HTTP-Anfrage
PATCH https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
fileId |
string
Die ID für die Datei.
|
revisionId |
string
Die ID für die Überarbeitung.
|
Anfragetext
Der Anfragetext enthält eine Instanz von Revision
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Revision
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
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
Einige Bereiche sind eingeschränkt und erfordern eine Sicherheitsprüfung, damit Ihre App sie verwenden kann. Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-03 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-03 (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"]]