ReferenceHTTP API
reboot
The reboot router: 1 method of the reboot capability, with tier, scope, input and output.
Capability reboot · scope device · mode singleton · source packages/types/src/capabilities/reboot.cap.ts:20.
Every method is called at /trpc/reboot.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
reboot | mutation | admin | admin only | no |
reboot.reboot
- Kind: mutation —
POST /trpc/reboot.reboot - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=reboot.rebooton your hub
Input
{ deviceId: number }Output
{ success: true }