License API for Put

I'm working on writing a play to update the license key. Get and delete works well, but when I put the license I got from the get it throws this error.

{
"errors": [{
"code": "license.invalid_license",
"message": "Invalid license: null"
}]
}

I added this to the get return to match the docs.

{
"license": {
"cluster_licenses": [
{
"license" : {}
}
],
"expiry_date_in_millis": 1581185762350,
...

Looks as though I need a value for what I added to the JSON. Am I correct?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.