Method: licenseAssignments.patch
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
उपयोगकर्ता के प्रॉडक्ट के SKU को उसी प्रॉडक्ट में किसी दूसरे SKU से फिर से असाइन करना. यह तरीका पैच सेमेंटेक्स के साथ काम करता है.
एचटीटीपी अनुरोध
PATCH https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
productId |
string
प्रॉडक्ट का यूनीक आइडेंटिफ़ायर. एपीआई के इस वर्शन में प्रॉडक्ट के बारे में ज़्यादा जानकारी के लिए, प्रॉडक्ट और SKU देखें.
|
skuId |
string
प्रॉडक्ट के SKU का यूनीक आइडेंटिफ़ायर. API के इस वर्शन में उपलब्ध SKU के बारे में ज़्यादा जानकारी के लिए, प्रॉडक्ट और SKU देखें.
|
userId |
string
उपयोगकर्ता का मौजूदा मुख्य ईमेल पता. अगर उपयोगकर्ता का ईमेल पता बदलता है, तो अपने एपीआई अनुरोधों में नए ईमेल पते का इस्तेमाल करें.
userId में बदलाव हो सकता है. इसलिए, userId वैल्यू को हमेशा सेव रहने वाले डेटा के लिए कुंजी के तौर पर इस्तेमाल न करें. अगर मौजूदा उपयोगकर्ता का ईमेल पता बदल जाता है, तो यह कुंजी काम नहीं करेगी. अगर userId निलंबित कर दिया जाता है, तो लाइसेंस की स्थिति बदल जाती है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में LicenseAssignment
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में LicenseAssignment
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/apps.licensing
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method: licenseAssignments.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.\n\n### HTTP request\n\n`PATCH https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `productId` | `string` A product's unique identifier. For more information about products in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `skuId` | `string` A product SKU's unique identifier. For more information about available SKUs in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `userId` | `string` The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes. |\n\n### Request body\n\nThe request body contains an instance of [LicenseAssignment](/workspace/admin/licensing/reference/rest/v1/licenseAssignments#LicenseAssignment).\n\n### Response body\n\nIf successful, the response body contains an instance of [LicenseAssignment](/workspace/admin/licensing/reference/rest/v1/licenseAssignments#LicenseAssignment).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.licensing`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]