ReferenceHTTP API
vehicle
The vehicle router: 2 methods of the vehicle capability, with tier, scope, input and output.
Capability vehicle · scope device · mode singleton · source packages/types/src/capabilities/vehicle.cap.ts:138.
Every method is called at /trpc/vehicle.<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 |
requestRefresh | mutation | admin | admin only | no |
vehicle.getStatus
- Kind: query —
GET /trpc/vehicle.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityvehicle, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vehicle.getStatuson your hub
Input
{ deviceId: number }Output
VehicleStatusSchemaShapes: VehicleStatusSchema
vehicle.requestRefresh
- Kind: mutation —
POST /trpc/vehicle.requestRefresh - 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=vehicle.requestRefreshon your hub
Input
{ deviceId: number }Output
VehicleRefreshResultSchemaShapes: VehicleRefreshResultSchema