Method: revisions.update
Cập nhật một bản sửa đổi.
Yêu cầu HTTP
PUT https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
fileId |
string
Mã của tệp.
|
revisionId |
string
Mã của bản sửa đổi.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của Revision
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Revision
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
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
Một số phạm vi bị hạn chế và cần phải được đánh giá bảo mật thì ứng dụng của bạn mới có thể sử dụng những phạm vi đó. Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-04 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]