LicenseAssignments: update

Requires authorization

Reassign a user's product SKU with a different SKU in the same product. Try it now.

Request

HTTP request

PUT https://www.googleapis.com/apps/licensing/v1/product/productId/sku/skuId/user/userId

Parameters

Parameter name Value Description
Path 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.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/apps.licensing

Request body

In the request body, supply a LicenseAssignments resource with the following properties:

Property name Value Description Notes
Required Properties
productId string A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs.
skuId string A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. writable
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.

Response

If successful, this method returns a LicenseAssignments resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.