{ "opencollection": "1.0.0", "info": { "name": "ThingsBoard Admin admin-controller notification-rule-controller API", "version": "4.3.0.3DEMO" }, "items": [ { "info": { "name": "notification-rule-controller", "type": "folder" }, "items": [ { "info": { "name": "Save Notification Rule (saveNotificationRule)", "type": "http" }, "http": { "method": "POST", "url": "https://demo.thingsboard.io/api/notification/rule", "body": { "type": "json", "data": "{}" } }, "docs": "Creates or updates notification rule. \n\nMandatory properties are `name`, `templateId` (of a template with `notificationType` matching to rule's `triggerType`), `triggerType`, `triggerConfig` and `recipientConfig`. Additionally, you may specify rule `description` inside of `additionalConfig`.\n\nTrigger type of the rule cannot be changed. Available trigger types for tenant: `ENTITY_ACTION`, `ALARM`, `ALARM_COMMENT`, `ALARM_ASSIGNMENT`, `DEVICE_ACTIVITY`, `RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT`.\nFor" }, { "info": { "name": "Get Notification Rules (getNotificationRules)", "type": "http" }, "http": { "method": "GET", "url": "https://demo.thingsboard.io/api/notification/rules", "params": [ { "name": "pageSize", "value": "", "type": "query", "description": "Maximum amount of entities in a one page" }, { "name": "page", "value": "", "type": "query", "description": "Sequence number of page starting from 0" }, { "name": "textSearch", "value": "", "type": "query", "description": "Case-insensitive 'substring' filter based on rule's name" }, { "name": "sortProperty", "value": "", "type": "query", "description": "Property of entity to sort by" }, { "name": "sortOrder", "value": "", "type": "query", "description": "Sort order. ASC (ASCENDING) or DESC (DESCENDING)" } ] }, "docs": "Returns the page of notification rules.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority." }, { "info": { "name": "Get Notification Rule by Id (getNotificationRuleById)", "type": "http" }, "http": { "method": "GET", "url": "https://demo.thingsboard.io/api/notification/rule/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Fetches notification rule info by rule's id.\nIn addition to regular notification rule fields, there are `templateName` and `deliveryMethods` in the response.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority." }, { "info": { "name": "Delete Notification Rule (deleteNotificationRule)", "type": "http" }, "http": { "method": "DELETE", "url": "https://demo.thingsboard.io/api/notification/rule/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Deletes notification rule by id.\nCancels all related scheduled notification requests (e.g. due to escalation table)\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority." } ] } ], "bundled": true }