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

NameTypeDescription

level

string

organization

sid

string

organization sid

serializer

string

list or detail

Headers

NameTypeDescription

string

# serializer = name
{
    "page_size": 10,
    "page_number": 1,
    "page_count": 2,
    "count": 12,
    "next": null,
    "previous": null,
    "add_permission": true,
    "results": [
        {
            "sid": "adgj0a40xb7chmrwBGL",
            "name": "New version v5.0 released",
        },
        ...
    [
{
# serializer = list
{
    "page_size": 10,
    "page_number": 1,
    "page_count": 2,
    "count": 12,
    "next": null,
    "previous": null,
    "add_permission": true,
    "results": [
        {
            "sid": "adgj0a40xb7chmrwBGL",
            "name": "New version v5.0 released",
            "From": {
                "sid": "Labii",
                "name": "Labii"
            },
            "is_read": false,
            "change_permission": true
        },
        ...
    [
{
# serializer = detail
{
    "page_size": 10,
    "page_number": 1,
    "page_count": 2,
    "count": 12,
    "next": null,
    "previous": null,
    "add_permission": true,
    "results": [
        {
            "sid": "ILOR0a40x5dKPUZ50ej",
            "parent": null,
            "From": {
                "sid": "Labii",
                "name": "Labii"
            },
            "name": "Filter digest for My experiments on 2021-03-14",
            "body": "",
            "rows": [
                
            ],
            "is_read": true,
            "updated_by": null,
            "date_updated": "2021-03-14T20:57:37.077810Z",
            "date_created": "2021-03-14T20:57:37.073960Z",
            "change_permission": true
        },
        ...
    [
{

Notification List

POST /notifications/notification/list/{level}/{sid}/{serializer}/

Create a new notification

Path Parameters

NameTypeDescription

level

string

sid

string

serializer

string

Headers

NameTypeDescription

token

string

Request Body

NameTypeDescription

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

{
    "sid": "ILOR0a40x5dKPUZ50ej",
    "parent": null,
    "From": {
        "sid": "Labii",
        "name": "Labii"
    },
    "name": "Filter digest for My experiments on 2021-03-14",
    "body": "",
    "rows": [
        
    ],
    "is_read": true,
    "updated_by": null,
    "date_updated": "2021-03-14T20:57:37.077810Z",
    "date_created": "2021-03-14T20:57:37.073960Z",
    "change_permission": true
}

Notification Detail

GET /notifications/notification/detail/{sid}/

The view of notification will make this notification is_read=True.

Path Parameters

NameTypeDescription

sid

string

Headers

NameTypeDescription

token

string

{
    "sid": "ILOR0a40x5dKPUZ50ej",
    "parent": null,
    "From": {
        "sid": "Labii",
        "name": "Labii"
    },
    "name": "Filter digest for My experiments on 2021-03-14",
    "body": "",
    "rows": [
        
    ],
    "is_read": true,
    "updated_by": null,
    "date_updated": "2021-03-14T20:57:37.077810Z",
    "date_created": "2021-03-14T20:57:37.073960Z",
    "change_permission": true
}

Notification Detail

PATCH /notifications/notification/detail/{sid}/

Path Parameters

NameTypeDescription

sid

string

Headers

NameTypeDescription

token

string

{
    "sid": "ILOR0a40x5dKPUZ50ej",
    "parent": null,
    "From": {
        "sid": "Labii",
        "name": "Labii"
    },
    "name": "Filter digest for My experiments on 2021-03-14",
    "body": "",
    "rows": [
        
    ],
    "is_read": true,
    "updated_by": null,
    "date_updated": "2021-03-14T20:57:37.077810Z",
    "date_created": "2021-03-14T20:57:37.073960Z",
    "change_permission": true
}

Notification Detail

DELETE /notifications/notification/detail/{sid}/

Path Parameters

NameTypeDescription

sid

string

Headers

NameTypeDescription

token

string

{}

Last updated