Dominevo
ReferenceHTTP API

ptzAutotrack

The ptzAutotrack router: 4 methods of the ptz-autotrack capability, with tier, scope, input and output.

Capability ptz-autotrack · scope device · mode singleton · source packages/types/src/capabilities/ptz-autotrack.cap.ts:110.

Every method is called at /trpc/ptzAutotrack.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
setEnabledmutationprotectedcreateyes
getSettingsqueryprotectedviewyes
setSettingsmutationprotectedcreateno

ptzAutotrack.getStatus

  • Kind: query — GET /trpc/ptzAutotrack.getStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability ptz-autotrack, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=ptzAutotrack.getStatus on your hub

Input

{ deviceId: number }

Output

PtzAutotrackStatusSchema

Shapes: PtzAutotrackStatusSchema

ptzAutotrack.setEnabled

  • Kind: mutation — POST /trpc/ptzAutotrack.setEnabled
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability ptz-autotrack, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=ptzAutotrack.setEnabled on your hub

Input

{ deviceId: number; enabled: boolean }

Output

void

ptzAutotrack.getSettings

  • Kind: query — GET /trpc/ptzAutotrack.getSettings
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability ptz-autotrack, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=ptzAutotrack.getSettings on your hub

Input

{ deviceId: number }

Output

PtzAutotrackSettingsSchema | null

Shapes: PtzAutotrackSettingsSchema

ptzAutotrack.setSettings

  • Kind: mutation — POST /trpc/ptzAutotrack.setSettings
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability ptz-autotrack, or category device, or a device grant covering deviceId
  • Viewer: no
  • Try it: open /system/api-explorer?method=ptzAutotrack.setSettings on your hub

Input

{ deviceId: number; settings: { targetType?: string; stopDelaySeconds?: number; disappearDelaySeconds?: number } }

Output

void