Method: revisions.update
อัปเดตการแก้ไขด้วยความหมายของแพตช์
คำขอ HTTP
PATCH https://www.googleapis.com/drive/v3/files/{fileId}/revisions/{revisionId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
fileId |
string
รหัสของไฟล์
|
revisionId |
string
รหัสของการแก้ไข
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Revision
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Revision
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.file
ขอบเขตบางอย่างถูกจำกัดและต้องมีการประเมินความปลอดภัยเพื่อให้แอปใช้งานได้ โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-04 UTC
[null,null,["อัปเดตล่าสุด 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."]]],[]]