वह शेयर की गई ड्राइव जिससे बदलावों को वापस लाया जाएगा. अगर शेयर की गई ड्राइव के लिए बदलाव के आईडी दिए गए हैं, तो उन्हें शेयर की गई ड्राइव में दिखाया जाएगा. आइडेंटिफ़ायर के तौर पर, ड्राइव आईडी और बदलाव के आईडी, दोनों का इस्तेमाल करें.
includeCorpusRemovals
boolean
अगर अनुरोध के समय उपयोगकर्ता के पास फ़ाइल का ऐक्सेस है, तो क्या बदलावों में फ़ाइल रिसॉर्स को शामिल किया जाना चाहिए. भले ही, फ़ाइल को बदलावों की सूची से हटा दिया गया हो और इस फ़ाइल के लिए कोई और बदलाव नहीं किया गया हो.
includeItemsFromAllDrives
boolean
नतीजों में, 'मेरी ड्राइव' और शेयर की गई ड्राइव, दोनों के आइटम शामिल होने चाहिए या नहीं.
includeRemoved
boolean
क्या उन बदलावों को शामिल करना है जिनसे पता चलता है कि आइटम को बदलावों की सूची से हटा दिया गया है. उदाहरण के लिए, मिटाकर या ऐक्सेस खोकर.
includeTeamDriveItems (deprecated)
boolean
इस्तेमाल बंद कर दिया गया है: इसके बजाय, includeItemsFromAllDrives का इस्तेमाल करें.
pageSize
integer
हर पेज के लिए, बदलावों की ज़्यादा से ज़्यादा संख्या.
pageToken
string
यह टोकन, अगले पेज पर पिछली सूची के अनुरोध को जारी रखने के लिए होता है. इसे पिछले जवाब के 'nextPageToken' की वैल्यू पर सेट किया जाना चाहिए. इसके अलावा, इसे getStartPageToken तरीके से मिले जवाब पर भी सेट किया जा सकता है.
restrictToMyDrive
boolean
नतीजों को My Drive के क्रम के हिसाब से व्यू के दायरे में मौजूद बदलावों तक सीमित करना है या नहीं. इससे फ़ाइलों में किए गए बदलावों को शामिल नहीं किया जाता. जैसे, ऐप्लिकेशन डेटा फ़ोल्डर में मौजूद फ़ाइलें या शेयर की गई वे फ़ाइलें जिन्हें 'मेरी ड्राइव' में नहीं जोड़ा गया है.
spaces
string
कॉर्पस में क्वेरी करने के लिए, कॉमा लगाकर अलग किए गए स्पेस की सूची. 'drive' और 'appDataFolder' को वैल्यू के तौर पर इस्तेमाल किया जा सकता है.
supportsAllDrives
boolean
अनुरोध करने वाला ऐप्लिकेशन, 'मेरी ड्राइव' और शेयर की गई ड्राइव, दोनों के साथ काम करता है या नहीं.
supportsTeamDrives (deprecated)
boolean
इस्तेमाल बंद कर दिया गया है: इसके बजाय, supportsAllDrives का इस्तेमाल करें.
teamDriveId (deprecated)
string
इस्तेमाल बंद कर दिया गया है: इसके बजाय, driveId का इस्तेमाल करें.
includePermissionsForView
string
इससे यह तय होता है कि जवाब में किस अतिरिक्त व्यू की अनुमतियां शामिल करनी हैं. सिर्फ़ 'published' का इस्तेमाल किया जा सकता है.
includeLabels
string
labelInfo के तौर पर जवाब में शामिल किए जाने वाले लेबल के आईडी की कॉमा लगाकर अलग की गई सूची.
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
किसी उपयोगकर्ता के लिए किए गए बदलावों की सूची.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
बदलावों की सूची. अगर nextPageToken भरा गया है, तो हो सकता है कि यह सूची पूरी न हो. ऐसे में, नतीजों का एक और पेज फ़ेच किया जाना चाहिए.
kind
string
इससे पता चलता है कि यह किस तरह का संसाधन है. वैल्यू: तय की गई स्ट्रिंग "drive#changeList".
nextPageToken
string
बदलावों के अगले पेज के लिए पेज टोकन. अगर बदलावों की सूची के आखिर तक पहुंच गया है, तो यह विकल्प नहीं दिखेगा. पेज टोकन की समयसीमा खत्म नहीं होती.
newStartPageToken
string
आने वाले समय में होने वाले बदलावों के लिए, शुरुआती पेज का टोकन. यह विकल्प सिर्फ़ तब दिखेगा, जब बदलावों की मौजूदा सूची खत्म हो गई हो. पेज टोकन की समयसीमा खत्म नहीं होती.
अनुमति के स्कोप
इसके लिए, इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
कुछ स्कोप पर पाबंदी है. इसलिए, आपके ऐप्लिकेशन को इनका इस्तेमाल करने से पहले सुरक्षा का आकलन करना होगा. ज़्यादा जानकारी के लिए, अनुमति पाने से जुड़ी गाइड देखें.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method: changes.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ChangeList.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes).\n\n### HTTP request\n\n`GET https://www.googleapis.com/drive/v3/changes`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `driveId` | `string` The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier. |\n| `includeCorpusRemovals` | `boolean` Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file. |\n| `includeItemsFromAllDrives` | `boolean` Whether both My Drive and shared drive items should be included in results. |\n| `includeRemoved` | `boolean` Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. |\n| `includeTeamDriveItems` **(deprecated)** | `boolean` Deprecated: Use `includeItemsFromAllDrives` instead. |\n| `pageSize` | `integer` The maximum number of changes to return per page. |\n| `pageToken` | `string` The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method. |\n| `restrictToMyDrive` | `boolean` Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive. |\n| `spaces` | `string` A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'. |\n| `supportsAllDrives` | `boolean` Whether the requesting application supports both My Drives and shared drives. |\n| `supportsTeamDrives` **(deprecated)** | `boolean` Deprecated: Use `supportsAllDrives` instead. |\n| `teamDriveId` **(deprecated)** | `string` Deprecated: Use `driveId` instead. |\n| `includePermissionsForView` | `string` Specifies which additional view's permissions to include in the response. Only 'published' is supported. |\n| `includeLabels` | `string` A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of changes for a user.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"changes\": [ { object (/workspace/drive/api/reference/rest/v3/changes#Change) } ], \"kind\": string, \"nextPageToken\": string, \"newStartPageToken\": string } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `changes[]` | `object (`[Change](/workspace/drive/api/reference/rest/v3/changes#Change)`)` The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `\"drive#changeList\"`. |\n| `nextPageToken` | `string` The page token for the next page of changes. This will be absent if the end of the changes list has been reached. The page token doesn't expire. |\n| `newStartPageToken` | `string` The starting page token for future changes. This will be present only if the end of the current changes list has been reached. The page token doesn't expire. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive`\n- `\n https://www.googleapis.com/auth/drive.appdata`\n- `\n https://www.googleapis.com/auth/drive.file`\n- `\n https://www.googleapis.com/auth/drive.meet.readonly`\n- `\n https://www.googleapis.com/auth/drive.metadata`\n- `\n https://www.googleapis.com/auth/drive.metadata.readonly`\n- `\n https://www.googleapis.com/auth/drive.photos.readonly`\n- `\n https://www.googleapis.com/auth/drive.readonly`\n\nSome scopes are restricted and require a security assessment for your app to use them. For more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]