Update the license

PUT /_license

You can update your license at runtime without shutting down your nodes. License updates take effect immediately. If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true.

NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. If the operator privileges feature is enabled, only operator users can use this API.

Query parameters

  • Specifies whether you acknowledge the license changes.

application/json

Body

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
PUT /_license
curl \
 -X PUT http://api.example.com/_license \
 -H "Content-Type: application/json" \
 -d '{"license":{"":42.0,"issued_to":"string","issuer":"string","max_nodes":42.0,"max_resource_units":42.0,"signature":"string","type":"missing","uid":"string"},"licenses":[{"":42.0,"issued_to":"string","issuer":"string","max_nodes":42.0,"max_resource_units":42.0,"signature":"string","type":"missing","uid":"string"}]}'
Request examples
{
  "license": {
    "": 42.0,
    "issued_to": "string",
    "issuer": "string",
    "max_nodes": 42.0,
    "max_resource_units": 42.0,
    "signature": "string",
    "type": "missing",
    "uid": "string"
  },
  "licenses": [
    {
      "": 42.0,
      "issued_to": "string",
      "issuer": "string",
      "max_nodes": 42.0,
      "max_resource_units": 42.0,
      "signature": "string",
      "type": "missing",
      "uid": "string"
    }
  ]
}
Response examples (200)
{
  "acknowledge": {
    "license": [
      "string"
    ],
    "message": "string"
  },
  "acknowledged": true,
  "license_status": "active"
}