Workspace APIs
Update Workspace Dashboards
Update filter mappings for one or more dashboards inside a workspace.
PUT
Update dashboard filter-to-table mappings 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 to apply filter mapping changes using the embed id listed in metadata.
This endpoint updates existing dashboard filters by filter name. For each dashboard, DataBrain matches each input filter
name against existing filter labels and updates only matched filters.Array fields are required by schema (
dashboards, filters, applyOnTables) but can be empty. Empty arrays result in a valid no-op update.Authentication
This endpoint requires a service token in the Authorization header. 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
Bearer token for API authentication. Use your service token.
Must be set to
application/json.Request Body
Name of the workspace containing the dashboards to update.
List of dashboard filter update payloads.
External dashboard ID to update.
List of filters to update for this dashboard.
Filter name to match against the existing dashboard filter label.
List of table/column targets where this filter should apply.
Datatype of the target column. Must be one of:
string, number, or date.Schema name of the target table.
Table name without schema.
Target column name.
Internally, DataBrain stores table references as
schemaName.tableName while preserving the provided columnName.If a provided filter name does not match any existing dashboard filter label, that filter is ignored and existing filter configuration remains unchanged.
Response
Success payload.
Returns
true when all requested dashboard updates succeed.Error object if the request fails, otherwise
null.Examples
Possible Errors
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST_BODY | 400 | Missing or invalid fields in request body |
INVALID_SERVICE_TOKEN | 400 | Missing or invalid service token context |
INVALID_DASHBOARD_ID | 400 | Dashboard does not exist in the given workspace |
INTERNAL_SERVER_ERROR | 500 | Unexpected server error |
HTTP Status Code Summary
| Status Code | Description |
|---|---|
200 | OK - Dashboard filters updated successfully |
400 | Bad Request - Validation failure, invalid token context, or invalid dashboard |
500 | Internal Server Error - Unexpected server error |
Next Steps
List Workspaces
Verify workspace names before update calls
Fetch Metrics by Workspace
Validate downstream metric behavior after dashboard filter updates

