Method: revisions.update
Mengupdate revisi dengan semantik patch.
Permintaan HTTP
PATCH https://www.googleapis.com/drive/v3/files/{fileId}/revisions/{revisionId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
fileId |
string
ID file.
|
revisionId |
string
ID 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/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."],[[["This endpoint updates a specific revision of a file using patch semantics, allowing for partial modifications."],["You need the file ID and revision ID to target the specific revision you want to update."],["The request body should contain the desired changes to the revision, formatted according to the Revision resource structure."],["A successful update will return the updated Revision resource, reflecting the changes made."],["Authorization is required using one of the specified OAuth scopes, with some scopes potentially requiring a security assessment."]]],[]]