Skip to main content

Notification

A notification screen is used to inform the user of the outcome of an action.

Screen Type Id : notification

Properties

KeyTypeDescription
titleutf-8 stringThe primary title field on the screen. The field wraps when text overflows the width.
subtitleutf-8 stringThe subtitle field on the screen. The field wraps when text overflows the width.
adviceutf-8 stringSmall message at the top of the attention panel.
messageutf-8 stringPrimary result message under the icon location.
iconenumThe icon to be displayed. This can be either ”approved” or “declined”.
“approved”
“declined”
colorenumDetermines the color of the message text.
0 = Black
1 = Green
2 = Red

Examples

curl -X 'POST' ${CPS_UI_URL} \
-H 'Authorization: CPS apikey="'${CPS_API_KEY}'"' \
-H 'Content-Type: application/json' \
-d '{
"id": "my-notification-screen",
"type": "notification",
"properties": {
"title": "Title",
"subtitle": "Subtitle",
"message": "Message",
"color": "0"
}
}'
Example