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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
setEnabled | mutation | protected | create | yes |
getSettings | query | protected | view | yes |
setSettings | mutation | protected | create | no |
ptzAutotrack.getStatus
- Kind: query —
GET /trpc/ptzAutotrack.getStatus - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityptz-autotrack, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=ptzAutotrack.getStatuson your hub
Input
{ deviceId: number }Output
PtzAutotrackStatusSchemaShapes: PtzAutotrackStatusSchema
ptzAutotrack.setEnabled
- Kind: mutation —
POST /trpc/ptzAutotrack.setEnabled - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityptz-autotrack, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=ptzAutotrack.setEnabledon your hub
Input
{ deviceId: number; enabled: boolean }Output
voidptzAutotrack.getSettings
- Kind: query —
GET /trpc/ptzAutotrack.getSettings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityptz-autotrack, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=ptzAutotrack.getSettingson your hub
Input
{ deviceId: number }Output
PtzAutotrackSettingsSchema | nullShapes: PtzAutotrackSettingsSchema
ptzAutotrack.setSettings
- Kind: mutation —
POST /trpc/ptzAutotrack.setSettings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityptz-autotrack, or categorydevice, or a device grant coveringdeviceId - Viewer: no
- Try it: open
/system/api-explorer?method=ptzAutotrack.setSettingson your hub
Input
{ deviceId: number; settings: { targetType?: string; stopDelaySeconds?: number; disappearDelaySeconds?: number } }Output
void