Send a notification to the client
Notification payload.
sourcestring
typestring
Value in
"info" | "warning" | "success" | "danger"
toastobject
sourcestring
typestring
Value in
"info" | "warning" | "success" | "danger"
messagestring
toastunknown
quiet?boolean
data?object | string | number | boolean | null
Empty Object
sourcestring
typestring
Value in
"info" | "warning" | "success" | "danger"
messagestring
toastunknown
quiet?boolean
data?object | string | number | boolean | null
Empty Object
sourcestring
typestring
Value in
"info" | "warning" | "success" | "danger"
messagestring
toastobject
quiet?boolean
data?object | string | number | boolean | null
Empty Object
Response Body
curl -X POST "http://localhost:7172/api/notification" \ -H "Content-Type: application/json" \ -d '{ "source": "string", "type": "info", "toast": { "type": "info", "message": "string" } }'
{
"id": "string"
}