mirror of https://github.com/hak5/mk7-docs.git
4.7 KiB
4.7 KiB
layout | title | nav_order | parent |
---|---|---|---|
default | Notifications | 103 | WiFi Pineapple REST Documentation |
Notifications
{: .no_toc }
Table of Contents
{: .no_toc .text-delta }
- TOC {:toc}
Introduction
The notifications system allows modules or other tools to communicate with the WiFi Pineapple user via the UI. You may specify a notification level, message, and optionally the name of the module that sent the notification.
Endpoints
Create Notification PUT /api/notificationsRequest Body
```json
{
"level": number,
"message": string,
"module_name": string
}
```
Response
If successful, returns success state:
```json
{
"success": true
}
```
If unsuccessful: [See REST Error Responses](../../errors/errors)
Response
If successful, returns an array of notifications:
```json
[{
"id": number,
"message": string,
"level": number,
"time": string,
"read": bool,
"displayed": bool,
"module_name": string
}]
```
If unsuccessful: [See REST Error Responses](../../errors/errors)
Response
If successful, returns success state:
```json
{
"success": true
}
```
If unsuccessful: [See REST Error Responses](../../errors/errors)
Response
If successful, returns success state:
```json
{
"success": true
}
```
If unsuccessful: [See REST Error Responses](../../errors/errors)
Response
If successful, returns success state:
```json
{
"success": true
}
```
If unsuccessful: [See REST Error Responses](../../errors/errors)
Response
If successful, returns success state:
```json
{
"success": true
}
```
If unsuccessful: [See REST Error Responses](../../errors/errors)
Response
If successful, returns success state:
```json
{
"success": true
}
```
If unsuccessful: [See REST Error Responses](../../errors/errors)