curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/import-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{
"workspaceName": "Target Workspace",
"importDashboardData": {
"layout": [],
"filters": [],
"gridMargin": {}
}
}'
{
"data": []
}
curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/import-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{
"workspaceName": "Target Workspace",
"importDashboardData": {
"layout": [],
"filters": [],
"gridMargin": {}
}
}'
{
"data": []
}
Import a dashboard from a previously exported JSON payload into a workspace.
curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/import-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{
"workspaceName": "Target Workspace",
"importDashboardData": {
"layout": [],
"filters": [],
"gridMargin": {}
}
}'
{
"data": []
}
curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/import-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{
"workspaceName": "Target Workspace",
"importDashboardData": {
"layout": [],
"filters": [],
"gridMargin": {}
}
}'
{
"data": []
}
Authorization header. See API Token guide for how to obtain a service token.
Authorization: Bearer dbn_live_...
application/json.Content-Type: application/json
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.Show Getting import data
data property of the exported JSON.data property from the downloaded JSON file.error.code and error.message and HTTP status 400 or 500.
| 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 |
| Code | Message | HTTP Status |
|---|---|---|
INVALID_REQUEST_BODY | Joi validation message (e.g. "workspaceName" is required, "importDashboardData" is required) | 400 |
AUTH_ERROR | Invalid Service Token | 400 |
WORKSPACE_ID_ERROR | invalid workspace name, workspace name not found | 400 |
INTERNAL_SERVER_ERROR | Server error message | 500 |