Method: revisions.patch
Cập nhật một bản sửa đổi.
Yêu cầu HTTP
PATCH 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-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]