notificationRules
The notificationRules router: 29 methods of the notification-rules capability, with tier, scope, input and output.
Capability notification-rules · scope system · mode singleton · source packages/types/src/capabilities/notification-rules.cap.ts:3424.
Every method is called at /trpc/notificationRules.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listRules | query | admin | admin only | no |
getRule | query | admin | admin only | no |
createRule | mutation | admin | admin only | no |
updateRule | mutation | admin | admin only | no |
deleteRule | mutation | admin | admin only | no |
setRuleEnabled | mutation | admin | admin only | no |
listRuleTags | query | admin | admin only | no |
setRuleTags | mutation | admin | admin only | no |
getClipRetentionAsks | query | admin | admin only | no |
listDeviceMutes | query | admin | admin only | no |
setDeviceMuted | mutation | admin | admin only | no |
testRule | mutation | admin | admin only | no |
previewStateSummary | mutation | admin | admin only | no |
getConditionCatalog | query | protected | view | no |
getTemplateCatalog | query | protected | view | no |
previewTemplate | mutation | protected | view | no |
getHistory | query | admin | admin only | no |
getRuleLastRuns | query | admin | admin only | no |
resolveArtifactUrl | query | admin | admin only | no |
listSnoozes | query | protected | view | no |
createSnooze | mutation | protected | create | no |
cancelSnooze | mutation | protected | create | no |
getAlarmConfig | query | admin | admin only | no |
setAlarmConfig | mutation | admin | admin only | no |
createAlarmProfile | mutation | admin | admin only | no |
renameAlarmProfile | mutation | admin | admin only | no |
deleteAlarmProfile | mutation | admin | admin only | no |
activateAlarmProfile | mutation | admin | admin only | no |
getAlarmSensors | query | admin | admin only | no |
notificationRules.listRules
- Kind: query —
GET /trpc/notificationRules.listRules - 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=notificationRules.listRuleson your hub
Input
{}Output
{ rules: NcRuleSchema[] }Shapes: NcRuleSchema
notificationRules.getRule
- Kind: query —
GET /trpc/notificationRules.getRule - 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=notificationRules.getRuleon your hub
Input
{ ruleId: string }Output
{ rule: NcRuleSchema | null }Shapes: NcRuleSchema
notificationRules.createRule
- Kind: mutation —
POST /trpc/notificationRules.createRule - 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=notificationRules.createRuleon your hub
Input
{ rule: NcRuleInputSchema }Output
{ rule: NcRuleSchema }Shapes: NcRuleInputSchema · NcRuleSchema
notificationRules.updateRule
- Kind: mutation —
POST /trpc/notificationRules.updateRule - 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=notificationRules.updateRuleon your hub
Input
NcRuleUpdateInputSchemaOutput
{ rule: NcRuleSchema }Shapes: NcRuleUpdateInputSchema · NcRuleSchema
notificationRules.deleteRule
- Kind: mutation —
POST /trpc/notificationRules.deleteRule - 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=notificationRules.deleteRuleon your hub
Input
{ ruleId: string }Output
{ success: true }notificationRules.setRuleEnabled
- Kind: mutation —
POST /trpc/notificationRules.setRuleEnabled - 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=notificationRules.setRuleEnabledon your hub
Input
{ ruleId: string; enabled: boolean }Output
{ success: true }notificationRules.listRuleTags
- Kind: query —
GET /trpc/notificationRules.listRuleTags - 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=notificationRules.listRuleTagson your hub
Input
{}Output
{ rules: NcRuleTagsEntrySchema[] }Shapes: NcRuleTagsEntrySchema
notificationRules.setRuleTags
- Kind: mutation —
POST /trpc/notificationRules.setRuleTags - 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=notificationRules.setRuleTagson your hub
Input
{ kind: NcTaggedRuleKindSchema; ruleId: string; tags: string[]; tagIds?: string[] }Output
{ success: true }Shapes: NcTaggedRuleKindSchema
notificationRules.getClipRetentionAsks
- Kind: query —
GET /trpc/notificationRules.getClipRetentionAsks - 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=notificationRules.getClipRetentionAskson your hub
Input
{}Output
NcClipRetentionPlanSchemaShapes: NcClipRetentionPlanSchema
notificationRules.listDeviceMutes
- Kind: query —
GET /trpc/notificationRules.listDeviceMutes - 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=notificationRules.listDeviceMuteson your hub
Input
{}Output
{ mutedDeviceIds: number[] }notificationRules.setDeviceMuted
- Kind: mutation —
POST /trpc/notificationRules.setDeviceMuted - 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=notificationRules.setDeviceMutedon your hub
Input
{ deviceId: number; muted: boolean }Output
{ success: true }notificationRules.testRule
- Kind: mutation —
POST /trpc/notificationRules.testRule - 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=notificationRules.testRuleon your hub
Input
{ rule: NcRuleInputSchema; lookbackMinutes?: number = 60 }Output
{ results: NcTestResultSchema[] }Shapes: NcRuleInputSchema · NcTestResultSchema
notificationRules.previewStateSummary
- Kind: mutation —
POST /trpc/notificationRules.previewStateSummary - 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=notificationRules.previewStateSummaryon your hub
Input
{ rule: NcRuleInputSchema }Output
NcStateSummaryPreviewSchemaShapes: NcRuleInputSchema · NcStateSummaryPreviewSchema
notificationRules.getConditionCatalog
- Kind: query —
GET /trpc/notificationRules.getConditionCatalog - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynotification-rules, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=notificationRules.getConditionCatalogon your hub
Input
{}Output
{ catalog: NcConditionDescriptorSchema[]; taxonomy?: { videoClasses: ({ kind: string; label: string; parentKind: string | null })[]; audioKinds: ({ kind: string; label: string; parentKind: string | null })[]; labels: ({ kind: string; label: string; parentKind: string | null })[] } }Shapes: NcConditionDescriptorSchema
notificationRules.getTemplateCatalog
- Kind: query —
GET /trpc/notificationRules.getTemplateCatalog - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynotification-rules, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=notificationRules.getTemplateCatalogon your hub
Input
{}Output
{ vars: NcTemplateVarDescriptorSchema[]; defaults: NcTemplateDefaultSchema[] }Shapes: NcTemplateVarDescriptorSchema · NcTemplateDefaultSchema
notificationRules.previewTemplate
- Kind: mutation —
POST /trpc/notificationRules.previewTemplate - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynotification-rules, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=notificationRules.previewTemplateon your hub
Input
NcTemplatePreviewInputSchemaOutput
NcTemplatePreviewSchemaShapes: NcTemplatePreviewInputSchema · NcTemplatePreviewSchema
notificationRules.getHistory
- Kind: query —
GET /trpc/notificationRules.getHistory - 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=notificationRules.getHistoryon your hub
Input
{ filter?: NcHistoryFilterSchema = {"limit":100} }Output
{ entries: NcHistoryEntrySchema[] }Shapes: NcHistoryFilterSchema · NcHistoryEntrySchema
notificationRules.getRuleLastRuns
- Kind: query —
GET /trpc/notificationRules.getRuleLastRuns - 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=notificationRules.getRuleLastRunson your hub
Input
{}Output
NcRuleLastRunsSchemaShapes: NcRuleLastRunsSchema
notificationRules.resolveArtifactUrl
- Kind: query —
GET /trpc/notificationRules.resolveArtifactUrl - 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=notificationRules.resolveArtifactUrlon your hub
Input
{ artifactId: string }Output
{ url: string | null }notificationRules.listSnoozes
- Kind: query —
GET /trpc/notificationRules.listSnoozes - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynotification-rules, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=notificationRules.listSnoozeson your hub
Input
{}Output
{ snoozes: NcSnoozeSchema[] }Shapes: NcSnoozeSchema
notificationRules.createSnooze
- Kind: mutation —
POST /trpc/notificationRules.createSnooze - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynotification-rules, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=notificationRules.createSnoozeon your hub
Input
{ snooze: NcSnoozeInputSchema }Output
{ snooze: NcSnoozeSchema }Shapes: NcSnoozeInputSchema · NcSnoozeSchema
notificationRules.cancelSnooze
- Kind: mutation —
POST /trpc/notificationRules.cancelSnooze - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynotification-rules, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=notificationRules.cancelSnoozeon your hub
Input
{ snoozeId: string }Output
{ success: true }notificationRules.getAlarmConfig
- Kind: query —
GET /trpc/notificationRules.getAlarmConfig - 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=notificationRules.getAlarmConfigon your hub
Input
{}Output
NcAlarmConfigSchemaShapes: NcAlarmConfigSchema
notificationRules.setAlarmConfig
- Kind: mutation —
POST /trpc/notificationRules.setAlarmConfig - 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=notificationRules.setAlarmConfigon your hub
Input
{ patch: NcAlarmSettingsPatchSchema }Output
NcAlarmConfigSchemaShapes: NcAlarmSettingsPatchSchema · NcAlarmConfigSchema
notificationRules.createAlarmProfile
- Kind: mutation —
POST /trpc/notificationRules.createAlarmProfile - 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=notificationRules.createAlarmProfileon your hub
Input
NcAlarmCreateProfileInputSchemaOutput
NcAlarmConfigSchemaShapes: NcAlarmCreateProfileInputSchema · NcAlarmConfigSchema
notificationRules.renameAlarmProfile
- Kind: mutation —
POST /trpc/notificationRules.renameAlarmProfile - 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=notificationRules.renameAlarmProfileon your hub
Input
NcAlarmRenameProfileInputSchemaOutput
NcAlarmConfigSchemaShapes: NcAlarmRenameProfileInputSchema · NcAlarmConfigSchema
notificationRules.deleteAlarmProfile
- Kind: mutation —
POST /trpc/notificationRules.deleteAlarmProfile - 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=notificationRules.deleteAlarmProfileon your hub
Input
NcAlarmProfileIdInputSchemaOutput
NcAlarmConfigSchemaShapes: NcAlarmProfileIdInputSchema · NcAlarmConfigSchema
notificationRules.activateAlarmProfile
- Kind: mutation —
POST /trpc/notificationRules.activateAlarmProfile - 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=notificationRules.activateAlarmProfileon your hub
Input
NcAlarmProfileIdInputSchemaOutput
NcAlarmConfigSchemaShapes: NcAlarmProfileIdInputSchema · NcAlarmConfigSchema
notificationRules.getAlarmSensors
- Kind: query —
GET /trpc/notificationRules.getAlarmSensors - 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=notificationRules.getAlarmSensorson your hub
Input
NcAlarmSensorsInputSchemaOutput
NcAlarmSensorsSchema