Remote Dashboard Restart

Hi, is there any way to initiate a remote restart of a single dashboard in PSU?

Inside Universal Dashboard i had a clunky way of doing it with an endpoint that ran every 10 seconds looking for a file, when that file existed it did a Sync-UdElement x -broadcast to all users which udredirect all users to a maintenance page, then ran a schedulled task which performed iisreset (twice to get over websocket). In Universal i would still need to broadcast to users to get them off the live pages, but with the ease of restarting dashboards in PSU without iisreset, i am looking for a way to create an API which will reset the dashboard remotely.

Thanks.

You can use the Management API for this:

Stop dashboard

Invoke-RestMethod http://localhost:5000/api/v1/dashboard/1/status -Method Delete -Headers @{ Authorization = "Bearer <apptoken>" }

Start dashboard

Invoke-RestMethod http://localhost:5000/api/v1/dashboard/1/status -Method Post -Headers @{ Authorization = "Bearer <apptoken>" }

Ill give it a go, thanks adam!

I have also noticed that in PSU if i leave dahsboards running they stop after an amount of time, any idea how i stop this happening so they remain started?

Cheers