Skip to content

Dashboard widgets overview ​

A widget is one chart on a dashboard. It always belongs to one dashboard and is addressed under it. A widget holds settings: its chart type, axes, config, grid position and filters. The data it displays comes from the chart/ endpoint.

The widget object ​

Attributes ​

  • id string (uuid)

    Unique identifier.

  • dashboard_id string (uuid)

    The dashboard the widget is on.

  • name string

    Display name, 1 to 255 characters.

  • chart_type string

    The chart type, for example BAR_CHART. See Chart types.

  • chart_model string

    The variant of the chart type, for example STACKED. The allowed values depend on chart_type.

  • config object

    Settings for the chart type. On axis charts, the four axis fields below are mirrored here.

  • x_axis_property string or null

    Axis charts only. See Axis properties.

  • x_axis_date_grouping string or null

    Axis charts only. DAY, WEEK, MONTH or YEAR, used when the x axis is a date.

  • y_axis_metric string or null

    Axis charts and NUMBER. See Axis metrics.

  • group_by string or null

    Axis charts only. A second grouping, with the same values as x_axis_property.

  • width, height integer

    Size on the dashboard grid. Default 1.

  • x_axis_coord, y_axis_coord integer

    Position on the dashboard grid. Default 0.

  • pql_filters object

    PQL filter for this widget only, on top of the dashboard's. Applies when last_used_filter is pql_filters.

  • filters object

    Filter object for this widget only. Applies when last_used_filter is rich_filters.

  • last_used_filter string

    Which widget filter applies: pql_filters or rich_filters. Default rich_filters.

  • rich_filters object

    The web app's filter-builder state. Stored and returned; charts don't read it.

  • created_at, updated_at string (date-time)

    When the widget was created and last updated.

  • created_by_id, updated_by_id string (uuid) or null

    Who created and last changed the widget.

Response200
json
{
  "id": "0bda418f-3e9a-47bd-8e70-faa04e1f9540",
  "dashboard_id": "05186e3b-94a3-49b0-8403-9307d292daea",
  "name": "Bar Chart",
  "chart_type": "BAR_CHART",
  "chart_model": "GROUPED",
  "config": {
    "group_by": "STATE_GROUPS",
    "y_axis_metric": "WORK_ITEM_COUNT",
    "x_axis_property": "PRIORITY",
    "x_axis_date_grouping": null
  },
  "x_axis_property": "PRIORITY",
  "x_axis_date_grouping": null,
  "y_axis_metric": "WORK_ITEM_COUNT",
  "group_by": "STATE_GROUPS",
  "height": 4,
  "width": 6,
  "x_axis_coord": 0,
  "y_axis_coord": 0,
  "filters": {},
  "pql_filters": {
    "json": {},
    "stripped": ""
  },
  "rich_filters": {},
  "last_used_filter": "rich_filters",
  "created_at": "2026-11-16T15:21:27.804027Z",
  "updated_at": "2026-11-16T15:21:35.255170Z",
  "created_by_id": "a5706ff6-df7d-4dac-947a-0a4fe14b6ed8",
  "updated_by_id": "a5706ff6-df7d-4dac-947a-0a4fe14b6ed8"
}

Endpoints ​

MethodPathDescription
GET/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/List widgets
POST/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/Create a widget
GET/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/{pk}/Get a widget
PATCH/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/{pk}/Update a widget
DELETE/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/{pk}/Delete a widget
GET/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/{pk}/chart/Get a widget's chart data
GET/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/charts/Get every widget's chart data

Every widget endpoint returns 404 when the dashboard is missing or you can't see it, and when the widget is on a different dashboard.

Access and plans ​

Widgets follow their dashboard's access rules: anyone who can see the dashboard can read its widgets and chart data, and anyone who can edit the dashboard can change them.

Each chart type can be on or off the workspace's plan. A chart type that's off returns 402 on create, update and chart/, and carries its own 402 entry in charts/. List widget types shows which ones are available.

Saved settings, not query parameters ​

A chart always uses the widget's saved settings and filters. Query parameters such as filters or x_axis_property on chart/ are ignored. To chart something different, update the widget.

OAuth scopes ​

workspaces.dashboards.widgets:read for listing, getting and chart data, and workspaces.dashboards.widgets:write for create, update and delete. The broad read and write scopes work too.

Response shaping ​

Widget reads accept ?fields= for sparse responses. See Sparse fields. Updates are PATCH only; PUT returns 405. Errors follow the shared problem+json contract.