ReferenceHTTP API
deviceStateRefresh
The deviceStateRefresh router: 2 methods of the device-state-refresh capability, with tier, scope, input and output.
Capability device-state-refresh · scope device · mode singleton · source packages/types/src/capabilities/device-state-refresh.cap.ts:35.
Every method is called at /trpc/deviceStateRefresh.<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 |
|---|---|---|---|---|
refresh | mutation | admin | admin only | no |
resubscribe | mutation | admin | admin only | no |
deviceStateRefresh.refresh
- Kind: mutation —
POST /trpc/deviceStateRefresh.refresh - 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=deviceStateRefresh.refreshon your hub
Input
DeviceStateRefreshInputSchemaOutput
DeviceStateRefreshResultSchemaShapes: DeviceStateRefreshInputSchema · DeviceStateRefreshResultSchema
deviceStateRefresh.resubscribe
- Kind: mutation —
POST /trpc/deviceStateRefresh.resubscribe - 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=deviceStateRefresh.resubscribeon your hub
Input
DeviceStateResubscribeInputSchemaOutput
DeviceStateRefreshResultSchemaShapes: DeviceStateResubscribeInputSchema · DeviceStateRefreshResultSchema