# Update index patterns automatically - programatically?

**URL:** <https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643>\
**Category:** Kibana\
**Created:** [April 29, 2021, 1:06pm UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643 "2021-04-29T13:06:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Cardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_cardy/32/5090_2.png) [@Paul\_Cardy](https://discuss.elastic.co/u/Paul_Cardy)\
**Post date:** [April 29, 2021, 1:06pm UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/1 "2021-04-29T13:06:25Z")

</div>

A few years ago, this question was asked and at the time it was suggested an API might be forthcoming. Has that happened? If not, what is the normal flow for a pipeline that does not have a fixed set of fields?

> [@Update index patterns automatically - programatically?](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/129547):
>
> Hello, Is there a solution / API function that allows for updating the index patterns programmatically? Opposed to the UI? Thank you!

Paul

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [April 30, 2021, 4:28am UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/2 "2021-04-30T04:28:42Z")

</div>

An index pattern is a saved object today. So you Change / update them by uploading and overriding existing index pattern using the saved objects API.

---

<div class="post-metadata">

**Author:** ![Paul\_Cardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_cardy/32/5090_2.png) [@Paul\_Cardy](https://discuss.elastic.co/u/Paul_Cardy)\
**Post date:** [May 4, 2021, 10:04am UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/3 "2021-05-04T10:04:44Z")

</div>

Hi Felix,

Ah, I think the original poster and myself mean the specific form of update Kibana performs when the below button is clicked, rather than simply altering what's in that saved object:

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/4/848b1ad0fcc5c6ea5f31216e92c24664deecc803.png)

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [May 4, 2021, 11:36am UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/4 "2021-05-04T11:36:29Z")

</div>

Ahh okay, in this case you only need to update to the latest version.  
The need for the refresh list button is now obsolete.

---

<div class="post-metadata">

**Author:** ![Paul\_Cardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_cardy/32/5090_2.png) [@Paul\_Cardy](https://discuss.elastic.co/u/Paul_Cardy)\
**Post date:** [May 4, 2021, 11:51am UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/5 "2021-05-04T11:51:11Z")

</div>

That's great news. Could you let us know which version it was removed in?

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [May 5, 2021, 3:31am UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/6 "2021-05-05T03:31:08Z")

</div>

I think it was back in 7.11

---

<div class="post-metadata">

**Author:** ![Paul\_Cardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_cardy/32/5090_2.png) [@Paul\_Cardy](https://discuss.elastic.co/u/Paul_Cardy)\
**Post date:** [May 5, 2021, 12:43pm UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/7 "2021-05-05T12:43:44Z")

</div>

Awesome, thank you.

---

<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:** [June 2, 2021, 12:44pm UTC](https://discuss.elastic.co/t/update-index-patterns-automatically-programatically/271643/8 "2021-06-02T12:44:28Z")

</div>

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