API ReferenceNotification
Create notification
Creates a new notification. Returns null when the target user may not receive the scope.
AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/notifications" \ -H "Content-Type: application/json" \ -d '{ "body": "string", "category": "ERP", "notificationType": "ALERT", "sender": "string", "title": "string", "username": "string" }'{
"actionUrl": "string",
"body": "string",
"category": "ERP",
"created": "2019-08-24T14:15:22Z",
"emailSent": true,
"emailSentAt": "2019-08-24T14:15:22Z",
"id": "string",
"isRead": true,
"metadata": {
"property1": null,
"property2": null
},
"notificationType": "ALERT",
"read": true,
"scope": "string",
"sender": "string",
"showInApp": true,
"tenantId": "string",
"title": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"userId": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}