diff --git a/databricks/sdk/service/dashboards.py b/databricks/sdk/service/dashboards.py index 1b02d8c89..a36850a76 100755 --- a/databricks/sdk/service/dashboards.py +++ b/databricks/sdk/service/dashboards.py @@ -1144,7 +1144,7 @@ def create(self, *, dashboard: Optional[Dashboard] = None) -> Dashboard: :returns: :class:`Dashboard` """ - body = dashboard + body = dashboard.as_dict() headers = {'Accept': 'application/json', 'Content-Type': 'application/json', } res = self._api.do('POST', '/api/2.0/lakeview/dashboards', body=body, headers=headers) @@ -1528,7 +1528,7 @@ def update(self, dashboard_id: str, *, dashboard: Optional[Dashboard] = None) -> :returns: :class:`Dashboard` """ - body = dashboard + body = dashboard.as_dict() headers = {'Accept': 'application/json', 'Content-Type': 'application/json', } res = self._api.do('PATCH',