Data Retrieval
Import Dashboard
Import a dashboard from a previously exported JSON payload into a workspace.
POST
Import a dashboard into a workspace using JSON data from the Export Dashboard API or from a file exported via the Databrain UI. The dashboard layout, metrics, and filters are recreated in the target workspace.Documentation Index
Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Use your service token in theAuthorization header. See Create Service Token for how to obtain a service token.
Headers
Bearer token for API authentication. Use your service token (company-level).
Must be
application/json.Request Body
Validated with
importDashboardSchema: workspaceName (string, required) and importDashboardData (object, required) are required. dashboardId, dashboardName, and schemaPairs are optional. Each schemaPairs item must include replaceSchema and targetSchema (strings).The name of the workspace where the dashboard should be imported. Must match an existing workspace name in your company.
The dashboard payload to import. Must be a non-null object. Use the
data property from an Export Dashboard response, or the equivalent structure from a UI-exported JSON file. Contains layout, filters, metrics configuration, and related dashboard structure.Optional stable identifier for the imported dashboard in the target workspace.
- If provided, this value is used as the external dashboard ID.
- If omitted, a new unique ID is generated automatically.
- If a dashboard with the same ID already exists in the target workspace, the import returns an error message and no new dashboard is created.
Optional display name to assign to the imported dashboard in the target workspace.If omitted, the name from the exported payload is used.
Optional. Maps schema names in the exported SQL/dashboard payload to schema names in the target workspace (for example when moving from staging to production).Each array element is an object with:
replaceSchema— string (required in each item)targetSchema— string (required in each item)
Response
Result of the import operation.On success,
data.response contains:message– human-readable summary of the import (including the number of imported metrics)dashboardId– external dashboard ID in the target workspacedashboardName– name of the imported dashboard in the target workspaceworkspaceName– name of the workspace where the dashboard was imported
error.code and error.message and HTTP status 400 or 500.
Examples
HTTP Status Code Summary
| Status Code | Description |
|---|---|
200 | OK – Dashboard imported successfully |
400 | Bad Request – Invalid or missing parameters, invalid token, or workspace not found |
500 | Internal Server Error – Server error during import |
Possible Errors
| Code | Message | HTTP Status |
|---|---|---|
INVALID_REQUEST_BODY | Joi validation message (e.g. "workspaceName" is required, invalid schemaPairs item) | 400 |
AUTHENTICATION_ERROR | Invalid Service Token (e.g. missing/invalid company context on token) | 400 |
WORKSPACE_ID_ERROR | invalid workspace name, workspace name not found | 400 |
INTERNAL_SERVER_ERROR | Server error message | 500 |
Related
- Export Dashboard – Export a dashboard to get the payload for import
- Import/Export Dashboard (UI) – UI guide for import/export

