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
dashboardIdIDMove widget to another dashboard
technicalCodeStringNew technical code (must be unique)
labelStringNew display label
configJsonStringJSON-encoded configuration update
sortIndexIntNew display order
displayedBooleanNew visibility state
dataAlgorithmIdIDNew data algorithm
displayedAlgorithmIdIDNew visibility algorithm
localizedLabel[LocalizedStringInput]Updated translated labels
widthDashboardWidgetWidthUpdated layout width
localizedContent[LocalizedStringInput]Updated translated HTML contents (used when widget type=html)

Exemple

mutation {
UpdateDashboardWidget(
id: $id
) {
# Sélectionner les champs souhaités
}
}