8.1.2.2. Uploading License Key File
Uploading a license file to the Metadefender Core.
There are two ways two obtain a license key file:
-
via https://portal.opswat.com/activation portal
-
via activation server REST API: https://activation.dl.opswat.com/activation?key=<activation key>&deployment=<deployment unique ID>&quantity=<quantity>
Deployment unique ID can be fetched via 8.1.2.3. Get Current License Information API.
Request |
Value |
Method |
POST |
URL |
/admin/license |
Request HTTP header parameters:
name |
type |
required |
value |
apikey |
string |
true |
Session id, can be acquired by Login / Create a Session |
Request body contains a license file
Successful response
HTTP status code: 200
Response contains
{
"success"
:
true
}
Error response
Invalid user information
HTTP status code: 403
{
"err"
:
"Access denied"
}
HTTP status code: 400
{
"err"
:
"Invalid license"
}
Unexpected event on server
HTTP status code: 500
{
"err"
:
"<error message>"
}
Note: Check Metadefender Core server logs for more information.