Notifications
Notifications is the resource representing the various notifications that notification-prep can render
Endpoints
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- locale string
If present, idenfies the language of the returned 'friendlyName' property.
- manageableInHub string
If present, represents the 'manageableInHub' value to filter by.
Can be one of: true
- subscribable string
If present, represents the 'subscribable' value to filter by.
Can be one of: true
Responses
200
Request completed successfully. See Results for ResultDetail on each notification.
- application/json object
Object containing array representing list of supported notifications
application/json properties
- notifications array of objectsRequired
list of notifications
notifications properties
- transports array of stringsRequired
Type of Transport e.g. Email, Notification, Slack message etc...
- isSubscribable booleanRequired
Indicates if the notification can be subscribed to by users. If true, the object will also contain 'subscriptionInfo' object
- presentationInfo object
Object containing information pertaining to the presentaion of a notification in the UI
presentationInfo properties
- scopes array of strings
Information about the scopes to which this notification applies. Helps determine the placement of the notification in the UI
- friendlyName string
Localized, human-readable string representing the name of the notification suitable to use in a UI
- scopeFriendlyNames object
Friendly name to be displayed for each scope.
additional optional properties
- string string
Localized, human-readable string representing the name of the notification suitable to use in a UI.
-
-
- subscriptionInfo object
Object indicating what properties to use to subscribe to this notification via the 'Subscriptions' service. For info about its properties, refer to the Subscription sevice's API doc.
subscriptionInfo properties
- action stringRequired
- target string
- resourceId string
- resourceType stringRequired
- resourceSubType string
-
- isManageableInHub boolean
Indicates if the notification can be managed in the hub. If true, the object will also contain 'subscriptionInfo' object and a 'presentationInfo' object with a non-empty scopes array.
- notificationNamePattern stringRequired
Notification name pattern that will trigger this notification e.g resource.action
-
-
default
Request error. See Errors.
- application/json object
An error object.
application/json properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- detail string
A human-readable explanation specific to this occurrence of the problem.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.notifications.getNotifications({})qlik notification lscurl "https://{tenant}.{region}.qlikcloud.com/api/v1/notifications" \-H "Authorization: Bearer <access_token>"Example Response
{ "notifications": [ { "transports": [ "string" ], "isSubscribable": true, "presentationInfo": { "scopes": [ "string" ], "friendlyName": "string", "scopeFriendlyNames": {} }, "subscriptionInfo": { "action": "string", "target": "string", "resourceId": "string", "resourceType": "string", "resourceSubType": "string" }, "isManageableInHub": true, "notificationNamePattern": "string" } ]}