# Failed to set the basic license

**URL:** <https://discuss.elastic.co/t/failed-to-set-the-basic-license/68258>\
**Category:** Elasticsearch\
**Created:** [December 7, 2016, 8:40am UTC](https://discuss.elastic.co/t/failed-to-set-the-basic-license/68258 "2016-12-07T08:40:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danilvoe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danilvoe/32/95494_2.png) [@danilvoe](https://discuss.elastic.co/u/danilvoe)\
**Post date:** [December 7, 2016, 8:40am UTC](https://discuss.elastic.co/t/failed-to-set-the-basic-license/68258/1 "2016-12-07T08:40:44Z")

</div>

When you attempt to install the license as it is written here [https://www.elastic.co/guide/en/x-pack/5.1/installing-license.html](https://www.elastic.co/guide/en/x-pack/5.1/installing-license.html)

curl -XGET -u elastic '[http://x.x.x.x:9200/\_xpack/license?acknowledge=true](http://x.x.x.x:9200/_xpack/license?acknowledge=true)' -d @license.json  
Enter host password for user 'elastic':  
{"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"request [/\_xpack/license] contains unrecognized parameter: [acknowledge]"}],"type":"illegal\_argument\_exception","reason":"request [/\_xpack/license] contains unrecognized parameter: [acknowledge]"},"status":400}

Server one cluster configuration is made

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [December 7, 2016, 11:50am UTC](https://discuss.elastic.co/t/failed-to-set-the-basic-license/68258/2 "2016-12-07T11:50:40Z")

</div>

If you switch `-XGET` to `-XPUT` this should not happen

---

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [December 8, 2016, 12:03pm UTC](https://discuss.elastic.co/t/failed-to-set-the-basic-license/68258/3 "2016-12-08T12:03:12Z")

</div>

Try;

`curl -XPUT -u elastic 'http://x.x.x.x:9200/_license&acknowledge=true' -d @license.json`

---

<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:** [January 5, 2017, 12:03pm UTC](https://discuss.elastic.co/t/failed-to-set-the-basic-license/68258/4 "2017-01-05T12:03:11Z")

</div>

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