Method: licenseAssignments.insert

Assign a license.

HTTP request

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

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.

Request body

The request body contains an instance of LicenseAssignmentInsert.

Response body

If successful, the response body contains a newly created instance of LicenseAssignment.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

LicenseAssignmentInsert

Representation of a license assignment.

JSON representation
{
  "userId": string
}
Fields
userId

string

Email id of the user