Skip to main content

setLicenseKey

This method sets a standalone or an add-on license key for a company.

Parameters

Parameter

Type

Optional

Description

licenseKey

String

No

The license key to be set.

companyId

String

Yes

The ID of the company whose license will be set. If no value is passed, the user's company will be selected.

Return value

This method does not return any value.

Example

Request:

  {
       "params": {
          "licenseKey" : "TNB3AAA",
          "companyId" : "5493dcd2b1a43df00b7b23c6"
       },
       "jsonrpc": "2.0",
       "method": "setLicenseKey",
       "id": "48daf1bc-4078-411c-bf44-4f293e68f501"
  }  

Response:

  {
      "id":"48daf1bc-4078-411c-bf44-4f293e68f501",
      "jsonrpc":"2.0",
      "result": null  
}