# Api to get saved objects info like Dashboard for kibana 8.9.0?

**URL:** <https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855>\
**Category:** Kibana\
**Created:** [August 29, 2023, 6:33am UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855 "2023-08-29T06:33:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daemon1](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Daemon1](https://discuss.elastic.co/u/Daemon1)\
**Post date:** [August 29, 2023, 6:33am UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/1 "2023-08-29T06:33:57Z")

</div>

`GET <kibana host>:<port>/api/saved_objects/<type>/<id>`  
The above API is deprecated for version 8.9.0

`GET <kibana host>:<port>/api/data_views`  
This API only returns the info about data\_views not dashboard.

What is the API to get dashboard info?

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [August 31, 2023, 11:44pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/2 "2023-08-31T23:44:09Z")

</div>

Hello @Daemon1,

What is your use case?

Using the import/export APIs should cover most scenarios. The [Export API](https://www.elastic.co/guide/en/kibana/current/saved-objects-api-export.html) enables you to fetch collections of saved objects.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Daemon1](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Daemon1](https://discuss.elastic.co/u/Daemon1)\
**Post date:** [September 5, 2023, 5:06am UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/3 "2023-09-05T05:06:23Z")

</div>

Scenario1:  
I want to check whether the dashboard is created before creating or updating dashboard.  
I am using import API for creating/updating dashboard. But before importing(updating), we need to replace the dashboard id of created dashboard in ndjson file, otherwise we will end up with creating new dashboard if we do not use the dashboard id of already created dashboard.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [September 20, 2023, 7:28pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/4 "2023-09-20T19:28:04Z")

</div>

For this scenario you can still use the Get Object API. Deprecated shouldn't mean that it isn't working. Those APIs won't be removed before there's alternative APIs to use.

---

<div class="post-metadata">

**Author:** ![laher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/laher/32/125967_2.png) [@laher](https://discuss.elastic.co/u/laher)\
**Post date:** [September 24, 2023, 10:42pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/5 "2023-09-24T22:42:15Z")

</div>

Oh no - I was hoping to start integrating with saved\_objects API (just the list and get endpoints), but I can't justifying integrating with a deprecated API.

Is there any way to track progress on the new API? Does it have a plan or a name yet?

Thanks

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [September 24, 2023, 11:24pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/6 "2023-09-24T23:24:53Z")

</div>

@laher, welcome to the community!

What is your use case?

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [September 24, 2023, 11:35pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/7 "2023-09-24T23:35:14Z")

</div>

> [@laher](#):
>
> Is there any way to track progress on the new API?

[Saved Objects API deprecation notice](https://github.com/elastic/kibana/issues/149988)

---

<div class="post-metadata">

**Author:** ![laher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/laher/32/125967_2.png) [@laher](https://discuss.elastic.co/u/laher)\
**Post date:** [September 24, 2023, 11:48pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/8 "2023-09-24T23:48:24Z")

</div>

Hi Priscilla,

We are integrating Kibana reports into our existing scheduling infrastructure, so that the report could be run and delivered to our tenants (e.g. via SFTP) on a schedule.

At the moment, our implementation requires someone to paste a Kibana 'POST URL' (including the long rison jobParams) into a text field in our web app.

I was hoping that we could instead present them with a dropdown list of dashboards and visualisations, so that they could choose one there. Crucially they would also be able to optionally _not_ pin to a version of the visualisation. When they update their visualisation/dashboard, the scheduled job would generate a POST URL which reflects the latest version of the saved object, including any recent edits.

So,

- When configuring the scheduled task: we'd list saved objects (filtered by type).
- When running the task, we'd use the ID and type to fetch the saved object, generate a POST URL, and then run the report.

In the meantime, we can still ask people to paste in the Post URL including its rison jobParams. It's OK, it's just more clunky & may require some tricky maintenance (e.g. if the visualisation changes or if our index definitions change, then their rison POST URLs might need updating).

Thanks

---

<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:** [October 22, 2023, 11:49pm UTC](https://discuss.elastic.co/t/api-to-get-saved-objects-info-like-dashboard-for-kibana-8-9-0/341855/9 "2023-10-22T23:49:21Z")

</div>

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