Skip to main content
The addWidgetToDashboard mutation adds a new widget to an existing dashboard.

Signature

Arguments

String!
required
The unique identifier of the dashboard to add the widget to.
DashboardWidgetInput!
required
Widget configuration for the new widget. See DashboardWidgetInput.

Response

Returns the updated Dashboard object with the new widget included. See Dashboard for the schema.

Usage example

The following example shows how to add a new widget to an existing dashboard:

Next steps

Update Dashboard Widgets

Update existing widgets

Delete Widget from Dashboard

Remove widgets from dashboard

DashboardWidgetInput Object

Widget creation input schema