cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboard programmatical update

pawelzak
New Contributor III

Hi,

The question that I would like to answer is: How can one replicate dashboards across different environments? Ideally I would like to be able to store the definition of a dashboard in my repository and upload it to Databricks with code: this could be API, SDK, Terraform, anything that will work.

How can I do that? I tried the following:

  1. databricks api post /api/2.0/preview/sql/dashboards/$dashboard_id --json @file.json
    But it does not update the widgets
  2. databricks api get /api/2.0/workspace/export --json '{"path": "/Shared/example_dashboard"}'
    Got the following result: "Error: dbsqlDashboard is not user-facing."

This is a fundamental functionality for the dashboards to be useful, if its not available right away, maybe there is a preview I could apply for?

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 organisation.

Regards,

Pawel

2 REPLIES 2

shan_chandra
Honored Contributor III
Honored Contributor III

@pawelzak  - The Dashboards can not be exported using workspace /export API. 

@shan_chandra Thanks but this does not answer my question

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.