Notification
Manage the system notifications
Method & Permission
API | GET | POST | PUT | PATCH | DELETE |
Organization List | User | User | - | - | - |
Organization Detail | User | - | - | User | User |
Notification List
GET
/notifications/notification/list/{level}/{sid}/{serializer}/
Get a list of notifications. You only get the notifications that sent to you.
Path Parameters
Name | Type | Description |
---|---|---|
level | string | organization |
sid | string | organization sid |
serializer | string | list or detail |
Headers
Name | Type | Description |
---|---|---|
string |
Notification List
POST
/notifications/notification/list/{level}/{sid}/{serializer}/
Create a new notification
Path Parameters
Name | Type | Description |
---|---|---|
level | string | |
sid | string | |
serializer | string |
Headers
Name | Type | Description |
---|---|---|
token | string |
Request Body
Name | Type | Description |
---|---|---|
to | array | [{sid:"", name:""}], array of personnel to receive the notification |
name | string | |
body | string | the message of the notification |
parent | object | {sid:"", name:""} of a parent notificaiton |
should_email | boolean | Should send an email regardless of the user's email settings |
Notification Detail
GET
/notifications/notification/detail/{sid}/
The view of notification will make this notification is_read=True.
Path Parameters
Name | Type | Description |
---|---|---|
sid | string |
Headers
Name | Type | Description |
---|---|---|
token | string |
Notification Detail
PATCH
/notifications/notification/detail/{sid}/
Path Parameters
Name | Type | Description |
---|---|---|
sid | string |
Headers
Name | Type | Description |
---|---|---|
token | string |
Notification Detail
DELETE
/notifications/notification/detail/{sid}/
Path Parameters
Name | Type | Description |
---|---|---|
sid | string |
Headers
Name | Type | Description |
---|---|---|
token | string |
Last updated