Method: enterprises.policies.patch
नीति को अपडेट करता है या बनाता है.
एचटीटीपी अनुरोध
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
name |
string
enterprises/{enterpriseId}/policies/{policyId} फ़ॉर्मैट में नीति का नाम.
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
फ़ील्ड मास्क, अपडेट किए जाने वाले फ़ील्ड के बारे में बताता है. अगर यह सेट नहीं है, तो बदलाव किए जा सकने वाले सभी फ़ील्ड में बदलाव हो जाएगा. यह फ़ील्ड के पूरी तरह से क्वालिफ़ाइड नामों की सूची है. इसमें नामों को कॉमा लगाकर अलग किया गया है. उदाहरण: "user.displayName,photo" .
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Policy
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Policy
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidmanagement
ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-02-19 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-02-19 (UTC) को अपडेट किया गया."],[[["This operation updates or creates an enterprise policy using a PATCH request to the specified URL."],["The request must include path and query parameters to identify the target policy and specify fields to update."],["Both request and response bodies utilize the `Policy` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This describes how to update or create a policy using a PATCH HTTP request to a specific URL. The URL path, including the enterprise and policy IDs, is defined by `name`. Optional `updateMask` query parameter specifies which policy fields to modify. The request and response bodies both utilize the `Policy` data structure. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The provided document details the URL structure, required parameters, and body content.\n"]]