Web notifications
Web notifications is the resource representing a user's notification
Endpoints
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- limit number
The number of notification entries to retrieved.
- page number
Page number
- read boolean
Read status of the notification
- resourceType string
Filter by resource types. If passing more than 1 resource type, use comma seperated string.
- sort string
The field to sort by, with +/- prefix indicating sort order
Can be one of: "+createdAt""-createdAt""+updatedAt""-updatedAt"
Responses
200
An array of notification objects
- application/json object
application/json properties
- data array of objects
data properties
- id stringRequired
- body stringRequired
- meta objectRequired
- read booleanRequired
- action string
- userId stringRequired
- spaceId string
- tenantId string
- createdAt stringRequired
- spaceType string
- updatedAt stringRequired
- resourceId string
- resourceType string
- subResourceType string
-
- meta object
Notifications meta data
meta properties
- unreadCount number
The total number of unread notification.
-
- links object
Notifications links
links properties
- next object
next properties
- href string
-
- prev object
prev properties
- href string
-
- self object
self properties
- href string
-
-
-
400
Invalid request parameters for querying users.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal server error
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message 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.webNotifications.getNotifications({})qlik web-notification lscurl "https://{tenant}.{region}.qlikcloud.com/api/v1/web-notifications" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "body": "string", "meta": {}, "read": true, "action": "string", "userId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "spaceId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "tenantId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "createdAt": "string", "spaceType": "string", "updatedAt": "string", "resourceId": "string", "resourceType": "string", "subResourceType": "string" } ], "meta": { "unreadCount": 0 }, "links": { "next": { "href": "string" }, "prev": { "href": "string" }, "self": { "href": "string" } }}Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Path Parameters
- notificationId stringRequired
The id of the notification to retrieve.
Responses
200
Successfully got notification.
- application/json object
application/json properties
- id stringRequired
- body stringRequired
- meta objectRequired
- read booleanRequired
- action string
- userId stringRequired
- spaceId string
- tenantId string
- createdAt stringRequired
- spaceType string
- updatedAt stringRequired
- resourceId string
- resourceType string
- subResourceType string
-
401
Unauthorized request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
404
Not found when user tries to get notification they do not own.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal server error
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message 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.webNotifications.getNotification( 'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69',)qlik web-notification get 'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/web-notifications/{notificationId}" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "body": "string", "meta": {}, "read": true, "action": "string", "userId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "spaceId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "tenantId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "createdAt": "string", "spaceType": "string", "updatedAt": "string", "resourceId": "string", "resourceType": "string", "subResourceType": "string"}Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- notificationId stringRequired
The id of the notification to update.
Request Body
Required- application/json array of objects
An array of JSON Patch documents
application/json properties
- op stringRequired
The operation to be performed.
Can be one of: "replace"
- path stringRequired
The path for the given resource field to patch.
Can be one of: "/read"
- value stringRequired
The value to be used for this operation.
-
Responses
204
Successfully patched marked notification.
- application/json object
Notifications meta data
application/json properties
- unreadCount number
The total number of unread notification.
-
400
Unsupported patch request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
404
Notification not found.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal server error
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message 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.webNotifications.patchNotification( 'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69', [ { op: 'replace', path: '/read', value: 'true', }, ],)qlik web-notification patch 'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69' \ --op 'replace' \ --path '/read' \ --value 'true'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/web-notifications/{notificationId}" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '[{"op":"replace","path":"/read","value":true}]'Example Response
{ "unreadCount": 0}Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- notificationId stringRequired
The id of the notification to delete.
Responses
204
Successfully deleted notification.
- application/json object
Notifications meta data
application/json properties
- unreadCount number
The total number of unread notification.
-
401
Unauthorized request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
404
Notification not found.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal server error
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message 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.webNotifications.deleteNotification( 'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69',)qlik web-notification rm 'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/web-notifications/{notificationId}" \-X DELETE \-H "Authorization: Bearer <access_token>"Example Response
{ "unreadCount": 0}Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
Required- application/json array of objects
An array of JSON Patch documents
application/json properties
- op stringRequired
The operation to be performed.
Can be one of: "replace"
- path stringRequired
The path for the given resource field to patch.
Can be one of: "/read"
- value stringRequired
The value to be used for this operation.
-
Responses
204
Successfully marked all notification.
- application/json object
Notifications meta data
application/json properties
- unreadCount number
The total number of unread notification.
-
400
Unsupported patch request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
401
Unauthorized request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal server error
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message 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.webNotifications.patchNotifications([ { op: 'replace', path: '/read', value: 'true' },])qlik web-notification patch-all \ --op 'replace' \ --path '/read' \ --value 'true'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/web-notifications/all" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '[{"op":"replace","path":"/read","value":true}]'Example Response
{ "unreadCount": 0}Facts
| Rate limit | Tier 2 (100 requests per minute) |
Responses
204
Successfully deleted notification.
- application/json object
Notifications meta data
application/json properties
- unreadCount number
The total number of unread notification.
-
401
Unauthorized request.
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message string
A human-readable explanation specific to this occurrence of the problem.
-
-
500
Internal server error
- application/json object
A representation of the errors encountered from the HTTP request.
application/json properties
- errors array of objects
An error object.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
- status integer
The HTTP status code.
- message 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.webNotifications.deleteNotifications()qlik web-notification delete-allcurl "https://{tenant}.{region}.qlikcloud.com/api/v1/web-notifications/all" \-X DELETE \-H "Authorization: Bearer <access_token>"Example Response
{ "unreadCount": 0}