Notification

add notification

POST https://ushahididocs.api.ushahidi.io/api/v3/notifications

Request Body

Name
Type
Description

user_id

Integer

The user identifier

set_id

Integer

Set ID

{
    "id": 7,
    "url": "http://localhost:8000/api/v3/notifications/7",
    "user": {
        "id": 4,
        "url": "http://localhost:8000/api/v3/users/4"
    },
    "set": {
        "id": 1,
        "url": "http://localhost:8000/api/v3/sets/1"
    },
    "created": "2022-11-02T19:06:07+00:00",
    "updated": null,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}

add notification

PUT https://ushahididocs.api.ushahidi.io/api/v3/notifications/6

Request Body

Name
Type
Description

user_id

Integer

The user identifier

set_id

Integer

Set ID

{
    "id": 7,
    "url": "http://localhost:8000/api/v3/notifications/7",
    "user": {
        "id": 4,
        "url": "http://localhost:8000/api/v3/users/4"
    },
    "set": {
        "id": 1,
        "url": "http://localhost:8000/api/v3/sets/1"
    },
    "created": "2022-11-02T19:06:07+00:00",
    "updated": null,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}