# Reloading the Index Field list automatically

**URL:** <https://discuss.elastic.co/t/reloading-the-index-field-list-automatically/116687>\
**Category:** Kibana\
**Created:** [January 23, 2018, 2:22pm UTC](https://discuss.elastic.co/t/reloading-the-index-field-list-automatically/116687 "2018-01-23T14:22:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanek64](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sanek64](https://discuss.elastic.co/u/sanek64)\
**Post date:** [January 23, 2018, 2:22pm UTC](https://discuss.elastic.co/t/reloading-the-index-field-list-automatically/116687/1 "2018-01-23T14:22:13Z")

</div>

Hi, i have got another question:

Is it a way to reload (refresh) Index field list that is in Management-\>Index Patterns-\>Refresh Fields list using API or smthg else automatic? Hope about api.

Thanks

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [January 23, 2018, 2:37pm UTC](https://discuss.elastic.co/t/reloading-the-index-field-list-automatically/116687/2 "2018-01-23T14:37:19Z")

</div>

i don't think there is an API call to do that, but you could do it with a few steps:

- get the list of fields in the index pattern with:  
`http://localhost:5601/api/index_patterns/_fields_for_wildcard?pattern=NAME_OF_YOUR_INDEX&meta_fields=["_source","_id","_type","_index","_score"]`,

- escape returned json and update the index with:  
`curl 'http://localhost:5601/api/saved_objects/index-pattern/ID_OF_YOUR_INDEX' -X PUT -H 'Content-Type: application/json' -H "kbn-xsrf: true" --data-binary '{"attributes":{"title":"NAME_OF_YOUR_INDEX","fields":"[ESCAPED_JSON_WITH_LIST_OF_YOUR_FIELDS]"}}'`

(take a look at network panel in chrome when you click the refresh fields button)

---

<div class="post-metadata">

**Author:** ![sanek64](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sanek64](https://discuss.elastic.co/u/sanek64)\
**Post date:** [January 23, 2018, 2:50pm UTC](https://discuss.elastic.co/t/reloading-the-index-field-list-automatically/116687/3 "2018-01-23T14:50:14Z")

</div>

Thanks, i get it.

---

<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:** [February 20, 2018, 2:50pm UTC](https://discuss.elastic.co/t/reloading-the-index-field-list-automatically/116687/4 "2018-02-20T14:50:26Z")

</div>

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