LicenseAssignments: insert

Assign a license. Try it now.

Request

HTTP request

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

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.

Authorization

This request requires authorization with the following scope:

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

For more information, see the authentication and authorization page.

Request body

In the request body, supply data with the following structure:

{
  "userId": string
}
Property name Value Description Notes
userId string Email id of the user

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.