UpdateDashboardWidget
Update an existing dashboard widget (partial update)
Signature
mutation {
UpdateDashboardWidget(id: ...)
}
Retourne : DashboardWidget!
Arguments
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
id | ID! | ✓ | — | Widget ID to update |
dashboardId | ID | — | Move widget to another dashboard | |
technicalCode | String | — | New technical code (must be unique) | |
label | String | — | New display label | |
configJson | String | — | JSON-encoded configuration update | |
sortIndex | Int | — | New display order | |
displayed | Boolean | — | New visibility state | |
dataAlgorithmId | ID | — | New data algorithm | |
displayedAlgorithmId | ID | — | New visibility algorithm | |
localizedLabel | [LocalizedStringInput] | — | Updated translated labels | |
width | DashboardWidgetWidth | — | Updated layout width | |
localizedContent | [LocalizedStringInput] | — | Updated translated HTML contents (used when widget type=html) |
Exemple
mutation {
UpdateDashboardWidget(
id: $id
) {
# Sélectionner les champs souhaités
}
}