Web notifications
Web notifications is the resource representing a user's notification
Endpoints
Facts
| Rate limit | Tier 1 (1000 requests per minute) | 
| Categories | manage | 
Query Parameters
-   limitnumber
The number of notification entries to retrieved.
 -   pagenumber
Page number
 -   readboolean
Read status of the notification
 -   resourceTypestring
Filter by resource types. If passing more than 1 resource type, use comma seperated string.
 -   sortstring
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/jsonobject
application/json properties
-   dataarray of objects
data properties
-   idstringRequired
 -   bodystringRequired
 -   metaobjectRequired
 -   readbooleanRequired
 -   actionstring
 -   userIdstringRequired
 -   spaceIdstring
 -   tenantIdstring
 -   createdAtstringRequired
 -   spaceTypestring
 -   updatedAtstringRequired
 -   resourceIdstring
 -   resourceTypestring
 -   subResourceTypestring
 
 -   
 -   metaobject
Notifications meta data
meta properties
-   unreadCountnumber
The total number of unread notification.
 
 -   
 -   linksobject
Notifications links
links properties
-   nextobject
next properties
-   hrefstring
 
 -   
 -   prevobject
prev properties
-   hrefstring
 
 -   
 -   selfobject
self properties
-   hrefstring
 
 -   
 
 -   
 
 -   
 
400
Invalid request parameters for querying users.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
401
Unauthorized request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
500
Internal server error
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({  hostConfig: {    host: 'https://your-tenant.us.qlikcloud.com',    apiKey: '<access-token>',  },})
await qlik.webNotifications.getNotifications({})This API is not included yet in qlik-clicurl "https://your-tenant.us.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) | 
| Categories | manage | 
Path Parameters
-   notificationIdstringRequired
The id of the notification to retrieve.
 
Responses
200
Successfully got notification.
-   application/jsonobject
application/json properties
-   idstringRequired
 -   bodystringRequired
 -   metaobjectRequired
 -   readbooleanRequired
 -   actionstring
 -   userIdstringRequired
 -   spaceIdstring
 -   tenantIdstring
 -   createdAtstringRequired
 -   spaceTypestring
 -   updatedAtstringRequired
 -   resourceIdstring
 -   resourceTypestring
 -   subResourceTypestring
 
 -   
 
401
Unauthorized request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
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/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
500
Internal server error
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({  hostConfig: {    host: 'https://your-tenant.us.qlikcloud.com',    apiKey: '<access-token>',  },})
await qlik.webNotifications.getNotification(  'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69',)This API is not included yet in qlik-clicurl "https://your-tenant.us.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) | 
| Categories | manage | 
Path Parameters
-   notificationIdstringRequired
The id of the notification to update.
 
Request Body
Required-   application/jsonarray of objects
An array of JSON Patch documents
application/json properties
-   opstringRequired
The operation to be performed.
Can be one of: "replace"
 -   pathstringRequired
The path for the given resource field to patch.
Can be one of: "/read"
 -   valuestringRequired
The value to be used for this operation.
 
 -   
 
Responses
204
Successfully patched marked notification.
-   application/jsonobject
Notifications meta data
application/json properties
-   unreadCountnumber
The total number of unread notification.
 
 -   
 
400
Unsupported patch request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
401
Unauthorized request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
404
Notification not found.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
500
Internal server error
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({  hostConfig: {    host: 'https://your-tenant.us.qlikcloud.com',    apiKey: '<access-token>',  },})
await qlik.webNotifications.patchNotification(  'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69',  [    {      op: 'replace',      path: '/read',      value: 'true',    },  ],)This API is not included yet in qlik-clicurl "https://your-tenant.us.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) | 
| Categories | manage | 
Path Parameters
-   notificationIdstringRequired
The id of the notification to delete.
 
Responses
204
Successfully deleted notification.
-   application/jsonobject
Notifications meta data
application/json properties
-   unreadCountnumber
The total number of unread notification.
 
 -   
 
401
Unauthorized request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
404
Notification not found.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
500
Internal server error
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({  hostConfig: {    host: 'https://your-tenant.us.qlikcloud.com',    apiKey: '<access-token>',  },})
await qlik.webNotifications.deleteNotification(  'TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69',)This API is not included yet in qlik-clicurl "https://your-tenant.us.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) | 
| Categories | manage | 
Request Body
Required-   application/jsonarray of objects
An array of JSON Patch documents
application/json properties
-   opstringRequired
The operation to be performed.
Can be one of: "replace"
 -   pathstringRequired
The path for the given resource field to patch.
Can be one of: "/read"
 -   valuestringRequired
The value to be used for this operation.
 
 -   
 
Responses
204
Successfully marked all notification.
-   application/jsonobject
Notifications meta data
application/json properties
-   unreadCountnumber
The total number of unread notification.
 
 -   
 
400
Unsupported patch request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
401
Unauthorized request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
500
Internal server error
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({  hostConfig: {    host: 'https://your-tenant.us.qlikcloud.com',    apiKey: '<access-token>',  },})
await qlik.webNotifications.patchNotifications([  { op: 'replace', path: '/read', value: 'true' },])This API is not included yet in qlik-clicurl "https://your-tenant.us.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) | 
| Categories | manage | 
Responses
204
Successfully deleted notification.
-   application/jsonobject
Notifications meta data
application/json properties
-   unreadCountnumber
The total number of unread notification.
 
 -   
 
401
Unauthorized request.
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
500
Internal server error
-   application/jsonobject
A representation of the errors encountered from the HTTP request.
application/json properties
-   errorsarray of objects
An error object.
errors properties
-   codestringRequired
The error code.
 -   titlestringRequired
Summary of the problem.
 -   statusinteger
The HTTP status code.
 -   messagestring
A human-readable explanation specific to this occurrence of the problem.
 
 -   
 
 -   
 
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({  hostConfig: {    host: 'https://your-tenant.us.qlikcloud.com',    apiKey: '<access-token>',  },})
await qlik.webNotifications.deleteNotifications()This API is not included yet in qlik-clicurl "https://your-tenant.us.qlikcloud.com/api/v1/web-notifications/all" \-X DELETE \-H "Authorization: Bearer <access_token>"Example Response
{  "unreadCount": 0}