Method: enterprises.devices.patch
किसी डिवाइस को अपडेट करता है.
एचटीटीपी अनुरोध
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
name |
string
डिवाइस का नाम, enterprises/{enterpriseId}/devices/{deviceId} फ़ॉर्मैट में.
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
फ़ील्ड मास्क, अपडेट किए जाने वाले फ़ील्ड के बारे में बताता है. अगर यह सेट नहीं है, तो बदलाव किए जा सकने वाले सभी फ़ील्ड में बदलाव हो जाएगा. यह फ़ील्ड के पूरी तरह से क्वालिफ़ाइड नामों की सूची है. इसमें नामों को कॉमा लगाकर अलग किया गया है. उदाहरण: "user.displayName,photo" .
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Device
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Device
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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) को अपडेट किया गया."],[[["Updates a device using an HTTP PATCH request to a specific URL with required path and optional query parameters."],["Requires `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization."],["Request and response bodies utilize the `Device` object for data transfer."],["Path parameters specify the enterprise and device, while query parameters allow for selective field updates using a field mask."],["You can find more details about the `Device` object and authorization in the provided links."]]],["This document details how to update a device using a PATCH request. The request URL structure is `https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}`, using gRPC Transcoding. The `name` path parameter specifies the device. The `updateMask` query parameter indicates which fields to modify. The request and response bodies use the `Device` object. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The user can use the `Try it!` option to test the update.\n"]]