Method: revisions.update
Permintaan HTTP
PUT https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
fileId |
string
ID untuk file.
|
revisionId |
string
ID untuk revisi.
|
Isi permintaan
Isi permintaan memuat instance Revision
.
Isi respons
Jika berhasil, isi respons akan berisi instance Revision
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
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
Beberapa cakupan dibatasi dan memerlukan penilaian keamanan agar aplikasi Anda dapat menggunakannya. Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-04 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-04 UTC."],[[["Updates a specific revision of a file using a PUT 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."],["A successful response will return the updated `Revision` object."],["Requires authorization with one of the listed OAuth scopes, some of which may require a security assessment."]]],["This document outlines the process for updating a file revision using a `PUT` HTTP request to a specified URL. Key actions include providing the `fileId` and `revisionId` as path parameters within the URL. The request and response bodies both utilize the `Revision` resource. Authorization requires one of four specified OAuth scopes, some of which are restricted and necessitate a security assessment. The provided documentation includes details about gRPC Transcoding.\n"]]