Method: labels.permissions.delete
किसी लेबल की अनुमति को मिटाता है. अनुमतियों की मदद से, लेबल के रिसॉर्स पर पूरा असर पड़ता है. इनमें बदलाव नहीं किया जाता और न ही इन्हें पब्लिश करने की ज़रूरत होती है.
एचटीटीपी अनुरोध
DELETE https://drivelabels.googleapis.com/v2beta/{name=labels/*/permissions/*}
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. अनुमति के रिसॉर्स का नाम लेबल करें.
|
क्वेरी पैरामीटर
पैरामीटर |
useAdminAccess |
boolean
उपयोगकर्ता के एडमिन क्रेडेंशियल का इस्तेमाल करने के लिए, true पर सेट करें. ऐक्सेस की अनुमति देने से पहले सर्वर यह पुष्टि करेगा कि उपयोगकर्ता, लेबल का एडमिन है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब का मुख्य हिस्सा खाली रहता है.
अनुमति के दायरे
इनमें से किसी एक OAuth दायरों की ज़रूरत होती है:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-04 (UTC) को अपडेट किया गया."],[[["This document outlines the process for deleting a Label's permission using the Drive Labels API, emphasizing that permissions apply to the entire Label and are not version-controlled."],["You will need to send a DELETE request to a specific URL, including the Label Permission resource name as a path parameter."],["Optionally, you can use the 'useAdminAccess' query parameter to leverage admin credentials for the operation, given the user has admin privileges for the Label."],["Authorization requires having either the 'drive.labels' or 'drive.admin.labels' OAuth scope, as detailed in the Authorization guide."],["Successful execution of the request results in an empty response body, indicating the permission was deleted."]]],["This document details how to delete a Label's permission via an HTTP DELETE request to a specified URL. The URL, defined using gRPC Transcoding syntax, requires the Label Permission resource name as a path parameter. An optional `useAdminAccess` query parameter allows for admin credential usage. The request body must be empty, and a successful operation results in an empty response body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope. Permissions are applied to the Label resource as a whole, are not revisioned and do not need to be published.\n"]]