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
חלק מההיקפים מוגבלים ומחייבים בדיקת אבטחה כדי שהאפליקציה תוכל להשתמש בהם. למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]],[]]