Dominevo
ReferenceHTTP API

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.

MethodKindTierToken scopeViewer
listRulesqueryadminadmin onlyno
getRulequeryadminadmin onlyno
createRulemutationadminadmin onlyno
updateRulemutationadminadmin onlyno
deleteRulemutationadminadmin onlyno
setRuleEnabledmutationadminadmin onlyno
listRuleTagsqueryadminadmin onlyno
setRuleTagsmutationadminadmin onlyno
getClipRetentionAsksqueryadminadmin onlyno
listDeviceMutesqueryadminadmin onlyno
setDeviceMutedmutationadminadmin onlyno
testRulemutationadminadmin onlyno
previewStateSummarymutationadminadmin onlyno
getConditionCatalogqueryprotectedviewno
getTemplateCatalogqueryprotectedviewno
previewTemplatemutationprotectedviewno
getHistoryqueryadminadmin onlyno
getRuleLastRunsqueryadminadmin onlyno
resolveArtifactUrlqueryadminadmin onlyno
listSnoozesqueryprotectedviewno
createSnoozemutationprotectedcreateno
cancelSnoozemutationprotectedcreateno
getAlarmConfigqueryadminadmin onlyno
setAlarmConfigmutationadminadmin onlyno
createAlarmProfilemutationadminadmin onlyno
renameAlarmProfilemutationadminadmin onlyno
deleteAlarmProfilemutationadminadmin onlyno
activateAlarmProfilemutationadminadmin onlyno
getAlarmSensorsqueryadminadmin onlyno

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.listRules on 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.getRule on 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.createRule on 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.updateRule on your hub

Input

NcRuleUpdateInputSchema

Output

{ 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.deleteRule on 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.setRuleEnabled on 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.listRuleTags on 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.setRuleTags on 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.getClipRetentionAsks on your hub

Input

{}

Output

NcClipRetentionPlanSchema

Shapes: 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.listDeviceMutes on 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.setDeviceMuted on 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.testRule on 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.previewStateSummary on your hub

Input

{ rule: NcRuleInputSchema }

Output

NcStateSummaryPreviewSchema

Shapes: NcRuleInputSchema · NcStateSummaryPreviewSchema

notificationRules.getConditionCatalog

  • Kind: query — GET /trpc/notificationRules.getConditionCatalog
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability notification-rules, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationRules.getConditionCatalog on 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: view on capability notification-rules, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationRules.getTemplateCatalog on 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: view on capability notification-rules, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationRules.previewTemplate on your hub

Input

NcTemplatePreviewInputSchema

Output

NcTemplatePreviewSchema

Shapes: 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.getHistory on 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.getRuleLastRuns on your hub

Input

{}

Output

NcRuleLastRunsSchema

Shapes: 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.resolveArtifactUrl on 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: view on capability notification-rules, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationRules.listSnoozes on 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: create on capability notification-rules, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationRules.createSnooze on 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: create on capability notification-rules, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationRules.cancelSnooze on 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.getAlarmConfig on your hub

Input

{}

Output

NcAlarmConfigSchema

Shapes: 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.setAlarmConfig on your hub

Input

{ patch: NcAlarmSettingsPatchSchema }

Output

NcAlarmConfigSchema

Shapes: 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.createAlarmProfile on your hub

Input

NcAlarmCreateProfileInputSchema

Output

NcAlarmConfigSchema

Shapes: 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.renameAlarmProfile on your hub

Input

NcAlarmRenameProfileInputSchema

Output

NcAlarmConfigSchema

Shapes: 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.deleteAlarmProfile on your hub

Input

NcAlarmProfileIdInputSchema

Output

NcAlarmConfigSchema

Shapes: 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.activateAlarmProfile on your hub

Input

NcAlarmProfileIdInputSchema

Output

NcAlarmConfigSchema

Shapes: 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.getAlarmSensors on your hub

Input

NcAlarmSensorsInputSchema

Output

NcAlarmSensorsSchema

Shapes: NcAlarmSensorsInputSchema · NcAlarmSensorsSchema