While testing API calls, I came across the “license-status>Trial Information” API. I did the standard GET call for that and received the expected response
{
"licenseMode": "Trial",
"trialState": "AllInDemo",
"trialSecondsLeft": 4078,
"expired": false,
"emergency": false,
"emergencySecondsLeft": 0,
"development": false,
"developmentSecondsLeft": 0
}
Once the trial had expired, I tried a POST instead of GET with the body as
{
"licenseMode": "Trial",
"trialState": "AllInDemo",
"trialSecondsLeft": 7200,
"expired": false,
"emergency": false,
"emergencySecondsLeft": 0,
"development": false,
"developmentSecondsLeft": 0
}
To my surprise, the trial was reset.
If the trial has not expired and you try a POST, it responds with a 403 though, so you’ll have to wait till
"trialSecondsLeft": 0
and
"expired": true