# How to update the license?

**URL:** <https://discuss.elastic.co/t/how-to-update-the-license/74033>\
**Category:** Elasticsearch\
**Created:** [February 6, 2017, 9:31am UTC](https://discuss.elastic.co/t/how-to-update-the-license/74033 "2017-02-06T09:31:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [February 6, 2017, 9:31am UTC](https://discuss.elastic.co/t/how-to-update-the-license/74033/1 "2017-02-06T09:31:28Z")

</div>

Hi ALL,

curl -XPUT -u elastic '[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)' @/tmp/license.json  
Enter host password for user 'elastic':  
{"error":{"root\_cause":[{"type":"parse\_exception","reason":"Failed to derive xcontent"}],"type":"parse\_exception","reason":"Failed to derive xcontent"},"status":400}curl: (6) Could not resolve host:

Please help me to update the license

Thanks,  
Raj

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [February 6, 2017, 10:10am UTC](https://discuss.elastic.co/t/how-to-update-the-license/74033/2 "2017-02-06T10:10:35Z")

</div>

Is the file valid JSON?  
The error suggests an issue parsing it as such.

---

<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:** [March 6, 2017, 10:10am UTC](https://discuss.elastic.co/t/how-to-update-the-license/74033/3 "2017-03-06T10:10:37Z")

</div>

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