# Programatically Update Timelion Visualization

**URL:** <https://discuss.elastic.co/t/programatically-update-timelion-visualization/125400>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [March 23, 2018, 5:46pm UTC](https://discuss.elastic.co/t/programatically-update-timelion-visualization/125400 "2018-03-23T17:46:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbaroody](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mbaroody](https://discuss.elastic.co/u/mbaroody)\
**Post date:** [March 23, 2018, 5:46pm UTC](https://discuss.elastic.co/t/programatically-update-timelion-visualization/125400/1 "2018-03-23T17:46:44Z")

</div>

Hello,

I have about 30 Timelion visualizations that all use a similar .es query, but with different index queries. They are all supposed to look the same on Kibana. Whenever I need to make a small change (like update the color of the lines) on all the 30 visualizations, I'm stuck manually updating the query for each visualization. There has to be a better way. I've read that this can be done via the Update API, but I have no idea how. When I search the .kibana index, I can see my dashboards (which I could presumably update), and I see each dashboard has a property: `"panelsJSON"`, and this has the fields `"type": visualization, "id": "c9550a25-afbd-4d27-b2e8-e9990a70af02"`.

How do I

1. Run a query to list all the visualizations (with their names), and
2. Update the visualization .es query programatically in a bash script.

This would save me a boatload of time.. Thanks!

---

<div class="post-metadata">

**Author:** ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)\
**Post date:** [March 23, 2018, 6:16pm UTC](https://discuss.elastic.co/t/programatically-update-timelion-visualization/125400/2 "2018-03-23T18:16:03Z")

</div>

Hi @mbaroody,

We have a couple issues for this general request [https://github.com/elastic/kibana/issues/7646](https://github.com/elastic/kibana/issues/7646) and [https://github.com/elastic/kibana/issues/16527](https://github.com/elastic/kibana/issues/16527). It's something we think is a great idea and something we definitely want to add at some point, but I'm not sure when that will be right now. Please feel free to outline your use case in those tickets if it isn't currently covered, or simply add a +1 to indicate your interest in this feature.

---

<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:** [April 20, 2018, 6:16pm UTC](https://discuss.elastic.co/t/programatically-update-timelion-visualization/125400/3 "2018-04-20T18:16:10Z")

</div>

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