Method: revisions.update
Bir düzeltmeyi günceller.
HTTP isteği
PUT https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
fileId |
string
Dosyanın kimliği.
|
revisionId |
string
Düzeltmenin kimliği.
|
İstek içeriği
İstek metni, Revision
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Revision
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
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
Bazı kapsamlar kısıtlanmıştır ve uygulamanızın bunları kullanabilmesi için güvenlik değerlendirmesi yapılması gerekir. Daha fazla bilgi için Yetkilendirme kılavuzuna göz atın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-04 UTC.
[null,null,["Son güncelleme tarihi: 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"]]