TFDi Design Icon
TFDi Design
Plugin Creation GuideLocal API ReferenceNotification

Send a notification to the client

POST
/api/notification

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"
}