# activateLicense

Administrator

Description: 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 successful
    • invalid — activation error
    • offline — if online activation is unavailable
    • processing — the activation data are being processed by the licensing server
  • key — License key

  • fileId - identifier of the created file on the built-in HTTP server, which was previously uploaded and will be used for offline registration

  • requestId - a unique request identifier. You can learn more about it here.

See also: