Method: revisions.patch
Żądanie HTTP
PATCH https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
fileId |
string
Identyfikator pliku.
|
revisionId |
string
Identyfikator wersji.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Revision
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Revision
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów 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
Niektóre zakresy są objęte ograniczeniami, a aplikacja może z nich korzystać dopiero po sprawdzeniu zabezpieczeń. Więcej informacji znajdziesz w przewodniku po autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-03 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]