# Refresh field list via script

**URL:** <https://forum.opensearch.org/t/refresh-field-list-via-script/16764>\
**Category:** OpenSearch Dashboards\
**Tags:** configure, index-management\
**Created:** [November 21, 2023, 2:00am UTC](https://forum.opensearch.org/t/refresh-field-list-via-script/16764 "2023-11-21T02:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theflakes](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@theflakes](https://forum.opensearch.org/u/theflakes)\
**Post date:** [November 21, 2023, 2:00am UTC](https://forum.opensearch.org/t/refresh-field-list-via-script/16764/1 "2023-11-21T02:00:58Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Latest

**Describe the issue** :  
Trying to find a way to automate the refreshing of fields for an index via a script. Is there a way to accomplish this via the API or curl request? Thanks

**Configuration** :  
None

**Relevant Logs or Screenshots** :  
None

---

<div class="post-metadata">

**Author:** ![Gsmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gsmitt/32/1718_2.png) [@Gsmitt](https://forum.opensearch.org/u/Gsmitt)\
**Post date:** [November 21, 2023, 6:23am UTC](https://forum.opensearch.org/t/refresh-field-list-via-script/16764/2 "2023-11-21T06:23:22Z")

</div>

Hey @theflakes

Maybe something here might help.

> **[Index APIs](https://opensearch.org/docs/latest/api-reference/index-apis/index/)**
>
> Index APIs Introduced 1.0

---

<div class="post-metadata">

**Author:** ![tlacuache](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/tlacuache/32/879_2.png) [@tlacuache](https://forum.opensearch.org/u/tlacuache)\
**Post date:** [November 27, 2023, 6:24pm UTC](https://forum.opensearch.org/t/refresh-field-list-via-script/16764/3 "2023-11-27T18:24:10Z")

</div>

You’re welcome to adapt what you can from [this script I use to do just that](https://github.com/idaholab/Malcolm/blob/3c7709522519fe419b57fa773643bdb8c8f7a6a9/dashboards/scripts/index-refresh.py#L432-L451).
