Dominevo
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.

MethodKindTierToken scopeViewer
refreshmutationadminadmin onlyno
resubscribemutationadminadmin onlyno

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.refresh on your hub

Input

DeviceStateRefreshInputSchema

Output

DeviceStateRefreshResultSchema

Shapes: 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.resubscribe on your hub

Input

DeviceStateResubscribeInputSchema

Output

DeviceStateRefreshResultSchema

Shapes: DeviceStateResubscribeInputSchema · DeviceStateRefreshResultSchema