ReferenceHTTP API
addonSettings
The addonSettings router: 8 methods of the addon-settings capability, with tier, scope, input and output.
Capability addon-settings · scope system · mode singleton · source packages/types/src/capabilities/addon-settings.cap.ts:87.
Every method is called at /trpc/addonSettings.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getScopedSettings | query | protected | view | no |
listScopedSettings | query | protected | view | no |
updateScopedSettings | mutation | admin | admin only | no |
readScopedValues | query | protected | view | no |
getDeclaredSettingsKeys | query | admin | admin only | no |
unsetStoredSettingsKeys | mutation | admin | admin only | no |
getDeviceSettings | query | protected | view | no |
updateDeviceSettings | mutation | admin | admin only | no |
addonSettings.getScopedSettings
- Kind: query —
GET /trpc/addonSettings.getScopedSettings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaddon-settings, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=addonSettings.getScopedSettingson your hub
Input
{ addonId: string; cap: string; scope: "cluster" | "device-defaults" | "node"; nodeId?: string }Output
SettingsSchemaWithValuesSchema | nullShapes: SettingsSchemaWithValuesSchema
addonSettings.listScopedSettings
- Kind: query —
GET /trpc/addonSettings.listScopedSettings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaddon-settings, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=addonSettings.listScopedSettingson your hub
Input
{ addonId: string; nodeId?: string }Output
({ cap: string; scope: "cluster" | "device-defaults" | "node"; sectionIds: string[] })[] | nulladdonSettings.updateScopedSettings
- Kind: mutation —
POST /trpc/addonSettings.updateScopedSettings - 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=addonSettings.updateScopedSettingson your hub
Input
{ addonId: string; cap: string; scope: "cluster" | "device-defaults" | "node"; nodeId?: string; patch: SettingsPatchSchema }Output
SettingsUpdateResultSchemaShapes: SettingsPatchSchema · SettingsUpdateResultSchema
addonSettings.readScopedValues
- Kind: query —
GET /trpc/addonSettings.readScopedValues - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaddon-settings, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=addonSettings.readScopedValueson your hub
Input
{ addonId: string; cap: string; scope: "cluster" | "device-defaults" | "node"; nodeId?: string }Output
Record<string, unknown> | nulladdonSettings.getDeclaredSettingsKeys
- Kind: query —
GET /trpc/addonSettings.getDeclaredSettingsKeys - 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=addonSettings.getDeclaredSettingsKeyson your hub
Input
{ addonId: string; nodeId?: string }Output
{ keys: string[] } | nulladdonSettings.unsetStoredSettingsKeys
- Kind: mutation —
POST /trpc/addonSettings.unsetStoredSettingsKeys - 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=addonSettings.unsetStoredSettingsKeyson your hub
Input
{ addonId: string; nodeId?: string; keys: string[] }Output
{ removed: string[]; refused: ({ key: string; reason: string })[]; secretsCleared: number }addonSettings.getDeviceSettings
- Kind: query —
GET /trpc/addonSettings.getDeviceSettings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaddon-settings, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=addonSettings.getDeviceSettingson your hub
Input
{ addonId: string; deviceId: number; nodeId?: string }Output
SettingsSchemaWithValuesSchema | nullShapes: SettingsSchemaWithValuesSchema
addonSettings.updateDeviceSettings
- Kind: mutation —
POST /trpc/addonSettings.updateDeviceSettings - 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=addonSettings.updateDeviceSettingson your hub
Input
{ addonId: string; deviceId: number; nodeId?: string; patch: SettingsPatchSchema }Output
SettingsUpdateResultSchema