Workspace APIs
Update Workspace Dashboards
Update filter mappings and dashboard gallery metrics for one or more dashboards inside a workspace.
PUT
Update dashboard filter-to-table mappings and incrementally add or remove metrics from dashboard galleries for dashboards that belong to a workspace.
First-time workspace dashboard integration: If you are wiring this flow for the first time, complete provisioning before calling this endpoint:
- Create an embed: Set up embedding with Create Embed or Create Dashboard Embed.
- List embeds: Use List Embeds to verify metadata configurations and identify the created embed.
- Update: Call Update Workspace Dashboards with the dashboard ID and filter labels from the embed metadata.
This endpoint updates existing dashboard filters by filter name. For each dashboard, DataBrain matches each input filter
name against existing filter labels. Every requested filter name must match an existing filter label or the request fails validation.Each dashboard entry must include at least one operation:
filters, appendMetrics, or removedMetrics. The dashboards array and each dashboard’s dashboardId are required. filters is optional, but each filter must include applyOnTables; appendMetrics and removedMetrics are also optional.Metric gallery updates require a service token. A data app API token can be used for filter mapping updates, but requests containing
appendMetrics or removedMetrics must use a service token.Authentication
This endpoint requires an authorized API token in the Authorization header. Use a service token for dashboard gallery metric updates; filter mapping updates can also use a data app API token. To access your service token:- In Settings page, navigate to the Service Tokens section.
- Click Generate Token to create a service token if you do not have one.
Headers
string
required
Bearer token for API authentication. Use your service token.
string
required
Must be set to
application/json.Request Body
string
required
Name of the workspace containing the dashboards to update.
array
required
List of dashboard update payloads. Dashboard IDs must be unique within this array.
string
required
External dashboard ID to update.
array
Optional list of filters to update for this dashboard.
string
required
Filter name to match against the existing dashboard filter label.
array
required
List of table/column targets where this filter should apply.
string
required
Datatype of the target column. This required string is passed through to the dashboard filter mapping.
string
required
Schema name of the target table.
string
required
Table name without schema.
string
required
Target column name.
array
Optional list of workspace metric IDs to add to this dashboard’s gallery.
string
required
Workspace metric ID to add to the dashboard gallery. Each
metricId may appear only once within appendMetrics.array
Optional list of dashboard gallery metric IDs to remove from this dashboard. Each ID may appear only once.
string
required
Dashboard gallery metric ID to remove. A metric ID cannot be included in both
appendMetrics and removedMetrics for the same dashboard.Internally, DataBrain stores table references as
schemaName.tableName while preserving the provided columnName.When appending a workspace metric, DataBrain creates or reuses the dashboard-gallery copy for the dashboard’s client. When removing a metric, only its association with the requested dashboard gallery is removed.
Response
null | object
Error object if the request fails, otherwise
null.Examples
Possible Errors
HTTP Status Code Summary
Next Steps
List Workspaces
Verify workspace names before update calls
Fetch Metrics by Workspace
Validate downstream metric behavior after dashboard filter updates

