# How to upload a visualtion data to kibana using curl command or using the requests post

**URL:** <https://discuss.elastic.co/t/how-to-upload-a-visualtion-data-to-kibana-using-curl-command-or-using-the-requests-post/168157>\
**Category:** Kibana\
**Created:** [February 13, 2019, 6:58am UTC](https://discuss.elastic.co/t/how-to-upload-a-visualtion-data-to-kibana-using-curl-command-or-using-the-requests-post/168157 "2019-02-13T06:58:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gowda/32/40867_2.png) [@gowda](https://discuss.elastic.co/u/gowda)\
**Post date:** [February 13, 2019, 6:58am UTC](https://discuss.elastic.co/t/how-to-upload-a-visualtion-data-to-kibana-using-curl-command-or-using-the-requests-post/168157/1 "2019-02-13T06:58:31Z")

</div>

i want to upload a json visualizations data to kibana using the curl command and this json data was obtained from the kibana itself  
is there a way that i could create the visualizations from the python script itself by using the json data from the kibana visualizations.  
i am trying to create a new visualizations for users by making little changes in the json visual data,,,is this possible??

here is the json data that i am trying to upload:

{  
"title":"cpu\_2",  
"visState":""" {"params": {"addTimeMarker": false, "grid": {"style": {"color": "#eee"}, "categoryLines": false}, "seriesParams": [{"showCircles": true, "show": true, "type": "histogram", "mode": "stacked", "drawLinesBetweenPoints": true, "valueAxis": "ValueAxis-1", "data": {"id": "2", "label": "Max Cpu\_utilisation"}}], "legendPosition": "right", "addTooltip": true, "times": , "categoryAxes": [{"style": {}, "scale": {"type": "linear"}, "title": {}, "show": true, "position": "bottom", "labels": {"truncate": 100, "show": true}, "type": "category", "id": "CategoryAxis-1"}], "type": "histogram", "valueAxes": [{"style": {}, "scale": {"type": "linear", "mode": "normal"}, "title": {"text": "Max Cpu\_utilisation"}, "name": "LeftAxis-1", "show": true, "position": "left", "labels": {"filter": false, "rotate": 0, "truncate": 100, "show": true}, "type": "value", "id": "ValueAxis-1"}], "addLegend": true}, "type": "histogram", "aggs": [{"type": "max", "enabled": true, "id": "2", "params": {"field": "Cpu\_utilisation"}, "schema": "metric"}, {"type": "terms", "enabled": true, "id": "3", "params": {"orderBy": "2", "field": "Time.keyword", "otherBucketLabel": "Other", "otherBucket": false, "missingBucket": false, "order": "desc", "missingBucketLabel": "Missing", "size": 20}, "schema": "segment"}], "title": "cpu\_2"}""",  
"uiStateJSON":"{}",  
"description" : "",  
"version" : 1,  
"kibanaSavedObjectMeta":{"searchSourceJSON":""""{"index": "220222b0-06ea-11e9-9ee2-1d0446b8a21a","query": {"language": "lucene","query": ""},"filter": }"""}  
}

this is json output of a visualization created in kibana .

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 19, 2019, 12:06am UTC](https://discuss.elastic.co/t/how-to-upload-a-visualtion-data-to-kibana-using-curl-command-or-using-the-requests-post/168157/2 "2019-02-19T00:06:37Z")

</div>

Hello,

So there are two questions in your post?

1. You can upload saved objects json through the saved objects UI in management.  

2. through saved objects API:  
[https://www.elastic.co/guide/en/kibana/master/saved-objects-api.html](https://www.elastic.co/guide/en/kibana/master/saved-objects-api.html)

3. I am not getting the context of creating vizs from python script here. Can you please explain?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![gowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gowda/32/40867_2.png) [@gowda](https://discuss.elastic.co/u/gowda)\
**Post date:** [March 13, 2019, 5:55am UTC](https://discuss.elastic.co/t/how-to-upload-a-visualtion-data-to-kibana-using-curl-command-or-using-the-requests-post/168157/3 "2019-03-13T05:55:21Z")

</div>

why i need to create the vizs from python script....

say there are 10 people and they all have a different data but the vizs are same for all 10 and now to solve this problem ...should we create a new 10 vizs for each or should we just change some parameters in the json file of the vizs (like id and index-pattern).

This is the situation presently ,,,so if we could make the it work by python code, that would be great..

---

<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 10, 2019, 5:55am UTC](https://discuss.elastic.co/t/how-to-upload-a-visualtion-data-to-kibana-using-curl-command-or-using-the-requests-post/168157/4 "2019-04-10T05:55:25Z")

</div>

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