# activateLicense
AdministratorDescription: Activate a license key.
If a key cannot be activated online, the system creates a file for offline activation.
Request example:
{
"method" : "activateLicense",
"requestId" : "1",
"key" : "G3K3-E929-837P-BHNQ-GKAV-GSLH-T5YU-3TJ8-ECWD-YBRV-J7A2"
}
Response example:
{
"method" : "activateLicense",
"requestId" : "1",
"status" : "processing",
"result" : true
}
If a key cannot be activated online:
{
"method" : "activateLicense",
"requestId" : "1",
"status" : "offline",
"fileId" : 451995367,
"result" : true
}
If the license key is entered in an invalid format
{
"method" : "activateLicense",
"requestId" : "1",
"status" : "invalid",
"error" : "Wrong key format",
"result" : false
}
Parameter description:
status
— the license key status; the following values are possible:valid
— the activation was successfulinvalid
— activation erroroffline
— if online activation is unavailableprocessing
— the activation data are being processed by the licensing server
key
— License keyfileId
- identifier of the created file on the built-in HTTP server, which was previously uploaded and will be used for offline registrationrequestId
- a unique request identifier. You can learn more about it here.
See also: