licenses - upgrade
Upgrades a license from another one.
WARNING: If it succeeds, deletes the current license.
POST https://api.keyzy.io/v2/licenses/upgrade
Arguments
app_id | An app_id that has read permission |
api_key | An api_key that has read permission |
current_serial | Current license's serial number |
upgrade_serial | Upgrade license's serial number |
Returns
Success
{
"message": "Upgrade license is ready to use."
}
Errors
You are not authorized
{
"error": {
"message": "You are not authorized!",
"status_code": 401
}
}
Current license does not exist!
{
"error": {
"message": "Current license does not exist!",
"status_code": 404
}
}
Upgrade license does not exist!
{
"error": {
"message": "Upgrade license does not exist!",
"status_code": 404
}
}
Upgrade license does not match for upgrade with current license!
{
"error": {
"message": "Upgrade license does not match for upgrade with current license!",
"status_code": 422
}
}