Activate License 

Description

Activate License returns recently activated licenses on the controller. The returned licences will give access to LicenseId, DateActivated, ExpireDays, and LicenseType

Request URL

http://{controllerMachine}:{controllerPort}//api/v3/license/activate

Input parameters

Field Type Description Comments
force   true/false If force is true, active license will be replaced by this one (in case when you want to replace trial license).
License
string Base64 string that represents license  

Examples

Curl

curl -X PUT --header 'Accept: text/plain' --header 'AccessKey: Mo87Nc4qDAtzJNDb' 'http://{controllerMachine}:{controllerPort}/api/v3/license/activate?force=true'

PowerShell 

$headers = @{}
$headers.Add("AccessKey","123qwe")
Invoke-WebRequest -Uri "http://autobotvm001:9001/api/v3/license/activate?force=true" -ContentType "text/plain" -Headers $headers -Method PUT 

Response Body

List of variables:

[

    {

        "$id": "1",

        "LicenseId": "5d13fce3-2233-167f-10db-ba9c8c378b4f",

        "DateActivated": "2019-08-07T12:01:52+00:00",

        "ExpireDays": 251,

        "LicenseType": "Trial"

     }

]

Response Object

Field Type Description Values
$LicenseId String Unique license ID  
DateActivated Date Date of license activation   
ExpireDays Integer Days remaining for licence   
LicenseType string Type of license  Trial/Platform etc.

Response Code

List of responses:

200 (OK)

401 (Unauthorized, incorrect access key)

400 (Incorrect parameter 'folder' key or its value)

409 (API Returns 409 error, If ItemId cannot create folder or ItemId already contains folder item with the same title or ItemId already contains same hierarchy)

500 (Internal Server Error)