# Using Curl to change cluster settings

**URL:** https://discuss.elastic.co/t/using-curl-to-change-cluster-settings/321086
**Category:** Elasticsearch
**Created:** [December 13, 2022, 4:53am UTC](https://discuss.elastic.co/t/using-curl-to-change-cluster-settings/321086 "2022-12-13T04:53:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![matt\_dee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_dee/32/114444_2.png) [@matt\_dee](https://discuss.elastic.co/u/matt_dee)
#### Post date: [December 13, 2022, 4:53am UTC](https://discuss.elastic.co/t/using-curl-to-change-cluster-settings/321086/1 "2022-12-13T04:53:52Z")

</div>

Hi.

I'm quite new to ES and have done most of the admin through kibana

I was doing a cluster restart and disabled shard allocation via dev tools through Kibana.  
Now I've started the nodes back up Kibana is giving an error:  
"Remove persistent and transient Elasticsearch cluster setting 'cluster.routing.allocation.enable' or set it to a value of all to 'all' migrations to preceded."  
I think I know what needs to be done however with no access to the devtools how to I go about changing the cluster settings?  
Can I push it through the browser to port9200?  
'Im wanting to learn how to use Curl (viaPowerShell) but so far everything I found on curl is tied to assumed knowledge and I'm having trouble getting my head around it.  
Could I please get some advice?  
Thanks

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 13, 2022, 5:13am UTC](https://discuss.elastic.co/t/using-curl-to-change-cluster-settings/321086/2 "2022-12-13T05:13:59Z")

</div>

I would try a tool like [Postman](https://www.postman.com/downloads/) which has a GUI and will also show you what the `curl` requests look like.

It's a good tool to learn REST APIs

---

<div class="post-metadata">

### Author: ![matt\_dee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_dee/32/114444_2.png) [@matt\_dee](https://discuss.elastic.co/u/matt_dee)
#### Post date: [December 13, 2022, 10:21pm UTC](https://discuss.elastic.co/t/using-curl-to-change-cluster-settings/321086/3 "2022-12-13T22:21:39Z")

</div>

Thanks Stephen, Ill give it a try!

---

<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 10, 2023, 10:22pm UTC](https://discuss.elastic.co/t/using-curl-to-change-cluster-settings/321086/4 "2023-01-10T22:22:13Z")

</div>

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