ReferenceHTTP API
error
The error router: 2 methods of the error capability, with tier, scope, input and output.
Capability error · scope device · mode singleton · source packages/types/src/capabilities/error.cap.ts:70.
Every method is called at /trpc/error.<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 |
listFaultTypes | query | protected | view | yes |
error.getStatus
- Kind: query —
GET /trpc/error.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityerror, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=error.getStatuson your hub
Input
{ deviceId: number }Output
ErrorStatusSchemaShapes: ErrorStatusSchema
error.listFaultTypes
- Kind: query —
GET /trpc/error.listFaultTypes - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityerror, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=error.listFaultTypeson your hub
Input
ListFaultTypesInputSchemaOutput
FaultTypesSchemaShapes: ListFaultTypesInputSchema · FaultTypesSchema