Migrating Dashboards via REST API
Migrating Dashboards via REST API
Dashboard migration from development to production as well as other dashboard configurations can be automated with a few Sisense REST API Commands for Dashboards .
See Using the REST API for more information on how to use the APIs described below.
Exporting Dashboard Files
The endpoint GET /dashboards/{id}/export/dash returns the dashboard's JSON in a .dash file according to the dashboard’s ID that can be later imported into Sisense.
Importing Dashboard Files
The endpoint POST /dashboards/import receives the metadata of a dashboard(s) and imports the dashboard(s) on another Sisense instance.
Copying Dashboard from Development to Production
The endpoint POST /dashboards/copy copies selected dashboards to a remote Sisense server.
Changing the Data Source to the Production Elasticube
The endpoint POST /dashboards/{server}/{title}/replace_datasource replaces the data source object of all the dashboards and widgets in the system.
Setting Security on the Production ElastiCube
The endpoints GET/POST /datasets/{fullname}/datasecurity returns and defines the data security rules for an ElastiCube. You can use the GET endpoint to retrieve the data security rules you defined for your ElastiCube in one environment and then apply it to the ElastiCube in another environment with the POST endpoint.
Setting Permissions for an ElastiCube
The endpoints GET/POST /elasticubes/{server}/{elasticube}/permissions returns and defines the permissions for an ElastiCube. You can use the GET endpoint to retrieve the permissions you defined for your ElastiCube in one environment and then apply them to the ElastiCube in another environment with the POST endpoint.
Publishing Dashboards
The endpoint POST /dashboards/{id}/publish sets the dashboard as the published version of it for the shared users to see.
.r.