|
/cxf/bpc-core/notification
|
To add a notification, send a JSON message with the following structure:
Minimal example
{
"subject": "Replication problem",
"message": "The database 'postgresql' is not reachable",
"recipients": [ "bpcadmin" ],
"recipientsType": "role"
}
More complex example
{
"priority": 10,
"subject": "API expires soon",
"message": "API Key API-39e889a expires soon. Please contact your administrator.",
"recipients": [ "bpcadmin" ],
"recipientsType": "role",
"validitySeconds": 3600,
"icon": "fa-file-certificate",
"type": "warning",
"linkData": {
"navigation": "/_nav/!-1&/module/_core/_core///_core/apiKeys/api/[\"API-39e889a\"]"
},
"topic": "TOPIC_APIKEY_EXPIRATION"
}
id (optional)
-
ID of the notification. A random UUID gets set when not given.
priority (optional)
-
Delivery priority of the notification. Can be one of the following values: 0 (Silent), 5 (Toast), 10 (Popup). 5 gets used when not given.
subject (required)
-
The subject of the notification.
message (optional)
-
The message of the notification.
recipients (required)
-
The recipients of the notification. Depends on the used recipientsType.
recipientsType (required)
-
The recipients type of the notification. Can be one of the following values: user, role or organisation.
originator (optional)
-
The originator of the notification. The login name of the user session gets used when not given.
validitySeconds
-
The number of seconds the notification is valid.
icon (optional)
-
The Font Awesome icon which should be used when showing the notification.
type (optional)
-
The type of the notification. The type 'info' gets used when not given. Other possibility are 'warn' and 'error'. Depending on the type, the notification is displayed accordingly in the GUI (see also Notifikationstypen und Darstellung in der Oberfläche).
linkData (optional)
-
Optionally specifies link information for navigation within BPC or to an external URL. You may provide either a url field for an external link or a navigation field containing the hash segment of a BPC URL.
topic (optional)
-
The notification topic
|
|
The added notification as JSON. Contains additionally the 'date' and 'version' fields which get automatically set/updated.
-
200 : OK
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}
|
To update a notification, send a JSON message with the following structure:
Minimal example
{
"subject": "Replication problem",
"message": "The database 'postgresql' is not reachable",
"recipients": [ "bpcadmin" ],
"recipientsType": "role"
}
More complex example
{
"priority": 10,
"subject": "API expires soon",
"message": "API Key API-39e889a expires soon. Please contact your administrator.",
"recipients": [ "bpcadmin" ],
"recipientsType": "role",
"icon": "fa-file-certificate",
"type": "warning",
"linkData": {
"navigation": "/_nav/!-1&/module/_core/_core///_core/apiKeys/api/[\"API-39e889a\"]"
}
}
priority (optional)
-
Delivery priority of the notification. Can be one of the following values: 0 (Silent), 5 (Toast), 10 (Popup). 5 gets used when not given.
subject (required)
-
The subject of the notification.
message (optional)
-
The message of the notification.
recipients (required)
-
The recipients of the notification. Depends on the used recipientsType.
recipientsType (required)
-
The recipients type of the notification. Can be one of the following values: user, role or organisation.
originator (optional)
-
The originator of the notification. The login name of the user session gets used when not given.
icon (optional)
-
The Font Awesome icon which should be used when showing the notification.
type (optional)
-
The type of the notification. The type 'info' gets used when not given. Other possibility are 'warn' and 'error'. Depending on the type, the notification is displayed accordingly in the GUI (see also Notifikationstypen und Darstellung in der Oberfläche).
linkData (optional)
-
Optionally specifies link information for navigation within BPC or to an external URL. You may provide either a url field for an external link or a navigation field containing the hash segment of a BPC URL.
|
|
notificationId
-
the ID of the notification to update
|
The updated notification as JSON. Contains additionally the 'date' and 'version' fields which get automatically set/updated.
-
200 : OK
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}
|
Delete a specific notification.
|
notificationId
-
the ID of the notification to delete
|
The deleted notification as JSON.
|
|
|
/cxf/bpc-core/notification
|
Delete notifications by topic.
|
topic
-
the topic for notifications to delete
keepNewest
-
if true, the newest notification of this topic will be kept. Default is false.
|
-
204 : Deletion successful
-
400 : Topic is not specified
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}
|
Get the data of a notification.
|
notificationId
-
the ID of the notification to get the data for
|
The data of the requested notification as JSON.
|
|
|
/cxf/bpc-core/notification
|
Get the notification of the requesting user.
|
start
-
paging start parameter. Default is 0.
limit
-
number of notifications to get. Default is 1000.
|
The requested notifications of the user as JSON.
-
200 : OK
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}/read
|
marks the notification as read by the user.
|
notificationId
-
the ID of the notification to mark as read
|
-
204 : Mark as read was successful
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}/unread
|
marks the notification as unread by the user.
|
notificationId
-
the ID of the notification to mark as unread
|
-
200 : Mark as unread was successful
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/read
|
Mark multiple notifications as read or unread by the user.
To do so, send a JSON message with the following fields:
notificationIds
-
List of IDs of the notifications to mark as read or unread.
isRead
-
Read status to set, either true or false
example
{
"notificationIds": ["11111111-0000-9999-aaaa-bbbbccccdddd","22222222-0000-9999-aaaa-bbbbccccdddd"],
"isRead": true
}
This marks the two notifications ("1111…" and "2222…") as read.
|
-
204 : Mark as read was successful
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|