POST Licenses
Add a new license to the collection. A UUID will be generated to represent the license, and can be used for deletion. The license summary cannot be set, and is derived from the license key. In addition, a single license key cannot be updated in-place. Instead, the old license keys should be deleted after the new license is added.
{
"key": "M502V-XXXXX-XXXXX-XXXXX-XXXXX"
}
Created a new license with the provided license key.
{
"license": {
"id": "abcdef12-3456-7890-ba36-123456789012",
"status": "Active",
"error": "",
"configuration": "1 Operating System Instance (OSI)",
"licenseKey": "M502V-XXXXX-XXXXX-XXXXX-XXXXX",
"infinite": true,
"count": 0,
"typeEnum": "OSI",
"expirationDate": -14400000,
"createdDate": 1498731659310
}
}
Error when trying to upload an invalid license key
{
"errorMessage": "Invalid serial number"
}
errorMessage
The request was refused because it lacks valid authentication
credentials. This can happen if the Authorization header
was missing, or if it contained an invalid session ID.
Obtain a new session ID and retry the request,
or make an unauthenticated request without the Authorization header.
"Invalid session ID"
Error when trying to upload the license key which already exists
{
"errorMessage": "License already exists."
}
errorMessage
The request was refused because the session ID has
expired. Obtain a new session ID from /api/v1/sessions.
"Login Timeout"
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/licenses