Skip to main content

UpdateDashboardWidget

Stable

Update an existing dashboard widget (partial update)

Signature​

mutation {
UpdateDashboardWidget(id: ...)
}

Retourne : DashboardWidget!

Arguments​

NomTypeRequisDéfautDescription
idID!✓—Widget ID to update
dashboardIdID—Move widget to another dashboard
technicalCodeString—New technical code (must be unique)
labelString—New display label
configJsonString—JSON-encoded configuration update
sortIndexInt—New display order
displayedBoolean—New visibility state
dataAlgorithmIdID—New data algorithm
displayedAlgorithmIdID—New visibility algorithm
localizedLabel[LocalizedStringInput]—Updated translated labels
widthDashboardWidgetWidth—Updated layout width
localizedContent[LocalizedStringInput]—Updated translated HTML contents (used when widget type=html)

Exemple​

mutation {
UpdateDashboardWidget(
id: $id
) {
id
technicalCode
label
localizedLabel {}
type {}
configJson
sortIndex
displayed
width {}
dashboard {}
dataAlgorithm {}
displayedAlgorithm {}
createdAt
updatedAt
}
}