Dashboard update through API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 01:08 AM
Hi,
I would like to create / update dashboard definition based on the json file. How can one do it? I tried the following:
- databricks api post /api/2.0/preview/sql/dashboards/$dashboard_id --json @file.json
But it does not update the widgets - databricks api get /api/2.0/workspace/export --json '{"path": "/Shared/t1"}'
Got the following result: "Error: dbsqlDashboard is not user-facing."
How can this be solved, I need to be able to create / update the dashboards programatically...
Regards,
Pawel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 04:11 AM
Hi @Retired_mod,
This situation presents significant challenges for our organization. How can we replicate dashboards across workspaces? Are there alternatives such as SDKs, Terraform, or anything similar? This seems like a fundamental use case, and it's surprising that Databricks doesn't support it, especially considering that extracting the definition is possible.
Apologies for creating duplicate tickets, but I've observed that follow-up questions often go unanswered in the Databricks community threads and this issue is critical for my organization.
Thank you,
Pawel