# Change master or data node configuration from rest api

**URL:** <https://discuss.elastic.co/t/change-master-or-data-node-configuration-from-rest-api/22331>\
**Category:** Elasticsearch\
**Created:** [February 23, 2015, 1:47pm UTC](https://discuss.elastic.co/t/change-master-or-data-node-configuration-from-rest-api/22331 "2015-02-23T13:47:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subodh\_Patil](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Subodh\_Patil](https://discuss.elastic.co/u/Subodh_Patil)\
**Post date:** [February 23, 2015, 1:47pm UTC](https://discuss.elastic.co/t/change-master-or-data-node-configuration-from-rest-api/22331/1 "2015-02-23T13:47:50Z")

</div>

We generally change whether the specific node is master or data by setting  
in the yml configuration file.  
How to change it by calling api or any other way ?

Thanks,  
Subodh

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 23, 2015, 8:32pm UTC](https://discuss.elastic.co/t/change-master-or-data-node-configuration-from-rest-api/22331/2 "2015-02-23T20:32:40Z")

</div>

You cannot do this.

On 24 February 2015 at 00:47, Subodh Patil [subodh007sp@gmail.com](mailto:subodh007sp@gmail.com) wrote:

> We generally change whether the specific node is master or data by setting  
> in the yml configuration file.  
> How to change it by calling api or any other way ?
> 
> Thanks,  
> Subodh
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8gR\_6SF55435AKv\_V37a8usGEhNHPNToeT1bLYHrSNDg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8gR_6SF55435AKv_V37a8usGEhNHPNToeT1bLYHrSNDg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:30am UTC](https://discuss.elastic.co/t/change-master-or-data-node-configuration-from-rest-api/22331/3 "2017-07-06T00:30:41Z")

</div>


