Method: revisions.patch
طلب HTTP
PATCH https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}
يستخدِم عنوان URL بنية تحويل ترميز 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 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]