Method: licenseAssignments.update

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

HTTP request

PUT 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.