Skip to main content

set_device_dashboard

Function set_device_dashboard 

Source
pub async fn set_device_dashboard(
    __arg0: State<HardwareCtx>,
    __arg1: Path<String>,
    __arg2: Json<DeviceDashboardUpdate>,
) -> (StatusCode, Json<Value>)
Expand description

PUT /api/hardware/devices/:id/dashboard — set the device’s poll interval and/or replace its widget selection + layout. Reuses the dashboard store so the same widgets the desktop builder authors render on the device. Pushes a display nudge so a connected device re-polls immediately.