Use this file to discover all available pages before exploring further.
The updateDashboardWidgets mutation updates multiple existing widgets on a dashboard in a single operation. This allows for bulk updates to widget properties such as titles, layouts, and other configurations.
Array of widget input objects containing the updates to apply. Each widget must include an id field to identify which widget to update. See DashboardWidgetInput for the complete schema.
The following example shows how to update multiple widget properties on a dashboard:
mutation UpdateDashboardWidgets($widgets: [DashboardWidgetInput!]) { updateDashboardWidgets(widgets: $widgets) { id version name widgets { id title nlQuery layout { top left width height } widgetType } }}
curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer <jwt_token>" \ -d '{ "query": "mutation UpdateDashboardWidgets($widgets: [DashboardWidgetInput!]) { updateDashboardWidgets(widgets: $widgets) { id version name widgets { id title nlQuery layout { top left width height } widgetType } } }", "variables": { "widgets": [ { "id": "widget_123456789", "title": "Updated Revenue Chart", "nlQuery": "Show monthly revenue by region" }, { "id": "widget_987654321", "layout": { "top": 6, "left": 4, "width": 8, "height": 6 } } ] } }' \ https://{ACCOUNT}.askwisdom.ai/graphql