# Node tag can be used for shard allocation, is there API to add/remove tag for certain node/nodes?

**URL:** https://discuss.elastic.co/t/node-tag-can-be-used-for-shard-allocation-is-there-api-to-add-remove-tag-for-certain-node-nodes/33029
**Category:** Elasticsearch
**Created:** [October 27, 2015, 12:36am UTC](https://discuss.elastic.co/t/node-tag-can-be-used-for-shard-allocation-is-there-api-to-add-remove-tag-for-certain-node-nodes/33029 "2015-10-27T00:36:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)
#### Post date: [October 27, 2015, 12:36am UTC](https://discuss.elastic.co/t/node-tag-can-be-used-for-shard-allocation-is-there-api-to-add-remove-tag-for-certain-node-nodes/33029/1 "2015-10-27T00:36:57Z")

</div>

is there API to add/remove tag for certain node/nodes?

---

<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: [October 27, 2015, 4:01am UTC](https://discuss.elastic.co/t/node-tag-can-be-used-for-shard-allocation-is-there-api-to-add-remove-tag-for-certain-node-nodes/33029/2 "2015-10-27T04:01:47Z")

</div>

No, it's currently done via the config file only.

---

<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 5, 2017, 11:42pm UTC](https://discuss.elastic.co/t/node-tag-can-be-used-for-shard-allocation-is-there-api-to-add-remove-tag-for-certain-node-nodes/33029/3 "2017-07-05T23:42:34Z")

</div>


