Method: labels.permissions.delete
किसी लेबल की अनुमति को मिटाता है. अनुमतियों की मदद से, लेबल के रिसॉर्स पर पूरा असर पड़ता है. इनमें बदलाव नहीं किया जाता और न ही इन्हें पब्लिश करने की ज़रूरत होती है.
एचटीटीपी अनुरोध
DELETE https://drivelabels.googleapis.com/v2/{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 resource and aren't versioned."],["The method requires a `DELETE` request to a specific URL with the Label Permission resource name as a path parameter, enabling users to remove access control for a specific label."],["An optional query parameter `useAdminAccess` can be set to `true` to leverage the user's admin privileges for authorization, requiring verification of admin status before proceeding."],["Successful deletion is indicated by an empty response body, while authorization necessitates the use of either `drive.labels` or `drive.admin.labels` OAuth scopes."]]],["This document details how to delete a Label's permission via an HTTP DELETE request. The request URL, defined using gRPC Transcoding syntax, includes a required `name` path parameter specifying the Label Permission resource. An optional `useAdminAccess` query parameter allows for admin credential use. The request body must be empty. A successful response returns an empty body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope. The operation directly impacts the Label resource and doesn't involve revisions or publishing.\n"]]