# Updating Elastic license

**URL:** <https://discuss.elastic.co/t/updating-elastic-license/223530>\
**Category:** Elasticsearch\
**Created:** [March 13, 2020, 2:53pm UTC](https://discuss.elastic.co/t/updating-elastic-license/223530 "2020-03-13T14:53:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [March 13, 2020, 2:53pm UTC](https://discuss.elastic.co/t/updating-elastic-license/223530/1 "2020-03-13T14:53:25Z")

</div>

Hi, I got a licence key (alphanumeric sequence), but checking the documentation it requires a json file to update the license, I was wandering if you can update the license with this key that I got....or do I need some other data like the one displayed in the documentation.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html)

```auto
PUT _license?acknowledge=true
{
  "licenses": [
    {
      "uid":"893361dc-9749-4997-93cb-802e3d7fa4xx",
      "type":"basic",
      "issue_date_in_millis":1411948800000,
      "expiry_date_in_millis":1914278399999,
      "max_nodes":1,
      "issued_to":"issuedTo",
      "issuer":"issuer",
      "signature":"xx"
    }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 14, 2020, 10:22am UTC](https://discuss.elastic.co/t/updating-elastic-license/223530/2 "2020-03-14T10:22:31Z")

</div>

How did you get the license key? All licenses I have downloaded from [elastic.co](http://elastic.co) have been in the form of JSON documents. Which version are you using?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 11, 2020, 10:22am UTC](https://discuss.elastic.co/t/updating-elastic-license/223530/3 "2020-04-11T10:22:33Z")

</div>

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