# Creating Dashboards in Kibana through elastic rest client

**URL:** <https://discuss.elastic.co/t/creating-dashboards-in-kibana-through-elastic-rest-client/203757>\
**Category:** Kibana\
**Created:** [October 16, 2019, 6:24am UTC](https://discuss.elastic.co/t/creating-dashboards-in-kibana-through-elastic-rest-client/203757 "2019-10-16T06:24:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prakhara/32/45904_2.png) [@prakhara](https://discuss.elastic.co/u/prakhara)\
**Post date:** [October 16, 2019, 6:24am UTC](https://discuss.elastic.co/t/creating-dashboards-in-kibana-through-elastic-rest-client/203757/1 "2019-10-16T06:24:54Z")

</div>

Hi ,

I want to create a new dashboard in kibana using java api, I tried by indexing as a document in .kibana index using elastic rest client but it is throwing error.  
Does anyone has a clue how it will be done, any guidance is appreciated.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [October 16, 2019, 9:54pm UTC](https://discuss.elastic.co/t/creating-dashboards-in-kibana-through-elastic-rest-client/203757/2 "2019-10-16T21:54:10Z")

</div>

> [@prakhara](#):
>
> new dashboard in kibana using java api,

Can you share what error your seeing, more steps, screenshots and logs, version of the stack would help . AFAIK, there's no publically exposed API for this, but there is an open PREQ for this: [https://github.com/elastic/kibana/issues/4759](https://github.com/elastic/kibana/issues/4759).

All dashboards are stored as saved-objects (basically a JSON-object that described which visualizations are included, plus some other settings).

Kibana internally uses a REST-API to manage saved-objects (so you can use curl to make requests). You can find more details about that here: [https://github.com/elastic/kibana/issues/4759](https://github.com/elastic/kibana/issues/4759). This is an internal implementation detail though, so this is subject to change at any time.  
Thanks  
Rashmi

---

<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:** [November 13, 2019, 9:54pm UTC](https://discuss.elastic.co/t/creating-dashboards-in-kibana-through-elastic-rest-client/203757/3 "2019-11-13T21:54:13Z")

</div>

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