<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dashboard update through API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57567#M30827</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create / update dashboard definition based on the json file. How can one do it? I tried the following:&lt;/P&gt;&lt;P&gt;databricks api post /api/2.0/preview/sql/dashboards/$dashboard_id --json @file.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it does not update the widgets...&lt;/P&gt;&lt;P&gt;How can this be solved, I need to be able to create / update the dashboards programatically&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawel&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 11:17:16 GMT</pubDate>
    <dc:creator>pawelzak</dc:creator>
    <dc:date>2024-01-17T11:17:16Z</dc:date>
    <item>
      <title>Dashboard update through API</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57567#M30827</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create / update dashboard definition based on the json file. How can one do it? I tried the following:&lt;/P&gt;&lt;P&gt;databricks api post /api/2.0/preview/sql/dashboards/$dashboard_id --json @file.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it does not update the widgets...&lt;/P&gt;&lt;P&gt;How can this be solved, I need to be able to create / update the dashboards programatically&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawel&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 11:17:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57567#M30827</guid>
      <dc:creator>pawelzak</dc:creator>
      <dc:date>2024-01-17T11:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard update through API</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57587#M30836</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To programmatically create/update dashboards in Databricks using a JSON file, you can use the Databricks REST API's &lt;/SPAN&gt;workspace/export&lt;SPAN&gt; and &lt;/SPAN&gt;workspace/import&lt;SPAN&gt; endpoints. Generate a JSON representation of your dashboard using &lt;/SPAN&gt;workspace/export&lt;SPAN&gt;, modify it as needed, and then use &lt;/SPAN&gt;workspace/import&lt;SPAN&gt; to update or create the dashboard with the modified JSON definition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best wishes, Zpak&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 13:39:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57587#M30836</guid>
      <dc:creator>Gamlet</dc:creator>
      <dc:date>2024-01-17T13:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard update through API</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57716#M30878</link>
      <description>&lt;P&gt;Hi Zpak,&lt;BR /&gt;&lt;BR /&gt;Could you please elaborate? I can not export the dashboard, the following error is returned:&lt;BR /&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&amp;nbsp;databricks api get /api/2.0/workspace/export --json '{"path": "/Shared/t1"}'&lt;BR /&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt; "Error: dbsqlDashboard is not user-facing."&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawel&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 10:36:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-update-through-api/m-p/57716#M30878</guid>
      <dc:creator>pawelzak</dc:creator>
      <dc:date>2024-01-18T10:36:06Z</dc:date>
    </item>
  </channel>
</rss>

