Method: licenseAssignments.patch
Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.
HTTP request
PATCH https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
productId |
string
A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.
|
skuId |
string
A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
|
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.
|
Request body
The request body contains an instance of LicenseAssignment
.
Response body
If successful, the response body contains an instance of LicenseAssignment
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.licensing
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-22 UTC.
[null,null,["Last updated 2024-08-22 UTC."],[[["Reassign a user's product SKU with a different SKU within the same product using the PATCH method and provided endpoint."],["Identify the target user and product SKU using `productId`, `skuId`, and `userId` within the request URL."],["Include the desired LicenseAssignment details in the request body to specify the new SKU assignment."],["Upon successful execution, the response provides an updated LicenseAssignment object reflecting the changes."],["Ensure authorization using the `https://www.googleapis.com/auth/apps.licensing` scope for accessing and modifying license assignments."]]],["This outlines how to reassign a user's product SKU using a PATCH request to `https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}`. The `productId`, `skuId`, and `userId` are specified as path parameters. The request body must include a `LicenseAssignment` instance, and a successful response will also return a `LicenseAssignment`. Authorization requires the `https://www.googleapis.com/auth/apps.licensing` scope. The path parameters provide identifying information about product, sku and user.\n"]]