Create a dashboard
Dashboards
Create a dashboard
Create a new dashboard. Associate roles by passing role_ids inside attributes. Setting is_default: true clears the default flag from every other dashboard atomically.
POST
Create a dashboard
Request Structure
Key Fields
| Field | Required | Description |
|---|---|---|
code | Yes | Unique dashboard code (max 30 chars) |
name | Yes | Display name (max 50 chars) |
description | No | Optional description (max 255 chars) |
is_active | No | Whether the dashboard is visible to users (default true) |
is_default | No | When true, this dashboard becomes the default for users — the previous default is cleared atomically (default false) |
role_ids | No | Array of role IDs that can access this dashboard. Passed inside attributes (not relationships) |
Adding widgets
UsePUT /api/dashboards/{id}/widgets (setDashboardWidgetPlacements) to attach widgets to the dashboard. That endpoint replaces all placements atomically.Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
Response
Dashboard created successfully. Response contains the new dashboard's id.
Identifier of the created dashboard

