ReferenceHTTP API
streamParams
The streamParams router: 4 methods of the stream-params capability, with tier, scope, input and output.
Capability stream-params · scope device · mode singleton · source packages/types/src/capabilities/stream-params.cap.ts:94.
Every method is called at /trpc/streamParams.<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 |
getOptions | query | protected | view | yes |
setProfile | mutation | admin | admin only | no |
getConfigSchema | query | protected | view | yes |
streamParams.getStatus
- Kind: query —
GET /trpc/streamParams.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitystream-params, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=streamParams.getStatuson your hub
Input
{ deviceId: number }Output
StreamParamsStatusSchemaShapes: StreamParamsStatusSchema
streamParams.getOptions
- Kind: query —
GET /trpc/streamParams.getOptions - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitystream-params, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=streamParams.getOptionson your hub
Input
{ deviceId: number }Output
StreamParamsOptionsSchemaShapes: StreamParamsOptionsSchema
streamParams.setProfile
- Kind: mutation —
POST /trpc/streamParams.setProfile - 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=streamParams.setProfileon your hub
Input
{ deviceId: number; profile: StreamProfileSchema; patch: StreamProfilePatchSchema }Output
voidShapes: StreamProfileSchema · StreamProfilePatchSchema
streamParams.getConfigSchema
- Kind: query —
GET /trpc/streamParams.getConfigSchema - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitystream-params, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=streamParams.getConfigSchemaon your hub
Input
{ deviceId: number }Output
unknown | null