Change master or data node configuration from rest api

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2f297b75-74e5-4d41-a22e-222eaa43ea73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You cannot do this.

On 24 February 2015 at 00:47, Subodh Patil 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8gR_6SF55435AKv_V37a8usGEhNHPNToeT1bLYHrSNDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.