Method: customers.devices.updateSigned
हस्ताक्षर किए गए device
को अपडेट करता है.
एचटीटीपी अनुरोध
PATCH https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल होता है.
पाथ पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. अपडेट करने के लिए डिवाइस का नाम.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में ये स्ट्रक्चर शामिल हैं:
जेएसओएन के काेड में दिखाना |
{
"encodedDevice": string,
"installerId": string
} |
फ़ील्ड |
encodedDevice |
string (bytes format)
ज़रूरी है. JSON वेब टोकन, जिसमें सीपीआई निजी कुंजी का इस्तेमाल किया गया है. पेलोड device की JSON एन्कोडिंग होनी चाहिए. Base64-एन्कोडेड स्ट्रिंग.
|
installerId |
string
ज़रूरी है. सर्टिफ़ाइड प्रोफ़ेशनल इंस्टॉलर डेटाबेस का यूनीक इंस्टॉलर आईडी (सीपीआई आईडी).
|
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Device
का एक इंस्टेंस शामिल किया जाता है.
अनुमति पाने के लिंक
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/userinfo.email
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2022-09-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-09-26 (UTC) को अपडेट किया गया."],[[["This documentation outlines the process for updating a signed device using a `PATCH` request to the specified endpoint."],["The request requires path and body parameters, including device name, encoded device data, and installer ID."],["If successful, the response returns the updated device information."],["Authorization requires the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This document details updating a signed device via a PATCH request to `https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned`. The request requires a `name` path parameter identifying the device. The request body, in JSON, includes `encodedDevice`, a base64-encoded, signed JSON Web Token representing the device, and `installerId`, a unique CPI ID. A successful response returns an instance of the updated `Device`. Authorization requires the `https://www.googleapis.com/auth/userinfo.email` OAuth scope.\n"]]