Method: revisions.update
किसी वर्शन को अपडेट करता है.
एचटीटीपी अनुरोध
PUT https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
fileId |
string
फ़ाइल का आईडी.
|
revisionId |
string
बदलाव का आईडी.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Revision
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Revision
का एक इंस्टेंस शामिल किया जाता है.
अनुमति देने के दायरे
इनमें से कोई एक OAuth स्कोप ज़रूरी है:
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
कुछ दायरे सीमित हैं. इनका इस्तेमाल करने के लिए, सुरक्षा जांच की ज़रूरत होती है. ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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"]]