ज़रूरी नहीं. अगर अनुरोध स्वीकार करने वाले व्यक्ति ने कोई भूमिका असाइन की है, तो उसकी जानकारी. ज़्यादा जानकारी के लिए, भूमिकाएं और अनुमतियां लेख पढ़ें.
ध्यान दें: ACCEPT कार्रवाई के लिए, यह फ़ील्ड भरना ज़रूरी है.
view
string
ज़रूरी नहीं. इस कुकी से, ऐक्सेस के इस अनुरोध के लिए व्यू का पता चलता है. इस वैल्यू को सिर्फ़ तब सेट किया जाना चाहिए, जब प्रपोज़ल किसी व्यू से जुड़ा हो. वैल्यू के तौर पर, सिर्फ़ published को इस्तेमाल किया जा सकता है.
ज़रूरी है. ऐक्सेस करने के अनुरोध पर की जाने वाली कार्रवाई.
sendNotification
boolean
ज़रूरी नहीं. ऐक्सेस के प्रस्ताव को अस्वीकार या स्वीकार किए जाने पर, अनुरोध करने वाले को ईमेल भेजना है या नहीं.
जवाब का मुख्य भाग
अगर अनुरोध पूरा हो जाता है, तो जवाब के मुख्य हिस्से में एक खाली JSON ऑब्जेक्ट होता है.
अनुमति के स्कोप
इसके लिए, इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
कुछ स्कोप पर पाबंदी है. इसलिए, आपके ऐप्लिकेशन को इनका इस्तेमाल करने से पहले सुरक्षा का आकलन करना होगा. ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
कार्रवाई
ऐक्सेस के प्रस्ताव की स्थिति में बदलाव.
Enums
ACTION_UNSPECIFIED
कार्रवाई के बारे में जानकारी नहीं दी गई है
ACCEPT
उपयोगकर्ता, ऐक्सेस के प्रस्ताव को स्वीकार करता है.
ध्यान दें: इस कार्रवाई का इस्तेमाल करने पर, role फ़ील्ड में कम से कम एक वैल्यू होनी चाहिए.
DENY
जब उपयोगकर्ता, ऐक्सेस के प्रस्ताव को अस्वीकार कर देता है.
[[["समझने में आसान है","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-09-09 (UTC) को अपडेट किया गया."],[],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Action](#Action)\n- [Try it!](#try-it)\n\nApproves or denies an access proposal. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).\n\nHTTP request\n\n`POST https://www.googleapis.com/drive/v3/files/{fileId}/accessproposals/{proposalId}:resolve`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------------|--------------------------------------------------------------|\n| `fileId` | `string` Required. The ID of the item the request is on. |\n| `proposalId` | `string` Required. The ID of the access proposal to resolve. |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"role\": [ string ], \"view\": string, \"action\": enum (/workspace/drive/api/reference/rest/v3/accessproposals/resolve#Action), \"sendNotification\": boolean } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `role[]` | `string` Optional. The roles that the approver has allowed, if any. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). Note: This field is required for the `ACCEPT` action. |\n| `view` | `string` Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported. |\n| `action` | `enum (`[Action](/workspace/drive/api/reference/rest/v3/accessproposals/resolve#Action)`)` Required. The action to take on the access proposal. |\n| `sendNotification` | `boolean` Optional. Whether to send an email to the requester when the access proposal is denied or accepted. |\n\nResponse body\n\nIf successful, the response body is an empty JSON object.\n\nAuthorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/docs`\n- `\n https://www.googleapis.com/auth/drive`\n- `\n https://www.googleapis.com/auth/drive.file`\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).\n\nAction The state change of the access proposal.\n\n| Enums ||\n|----------------------|--------------------------------------------------------------------------------------------------------------------|\n| `ACTION_UNSPECIFIED` | Unspecified action |\n| `ACCEPT` | The user accepts the access proposal. Note: If this action is used, the `role` field must have at least one value. |\n| `DENY` | The user denies the access proposal. |"]]