Update content/en/api/rest/notifications.md

This commit is contained in:
Eugen Rochko 2019-07-08 21:22:31 +02:00
parent 09004146f5
commit 38f8e77a91
1 changed files with 7 additions and 13 deletions

View File

@ -39,15 +39,7 @@ Returns [Notification]({{< relref "entities.md#notification" >}})
{{< api_method_info auth="Yes" user="Yes" scope="read read:notifications" version="0.0.0" >}}
## POST /api/v1/notifications/clear
Delete all notifications from the server.
### Resource information
{{< api_method_info auth="Yes" user="Yes" scope="write write:notifications" version="0.0.0" >}}
## POST /api/v1/notifications/dismiss
## POST /api/v1/notifications/:id/dismiss
Delete a single notification from the server.
@ -55,11 +47,13 @@ Delete a single notification from the server.
{{< api_method_info auth="Yes" user="Yes" scope="write write:notifications" version="0.0.0" >}}
### Parameters
## POST /api/v1/notifications/clear
|Name|Description|Required|
|----|-----------|:------:|
| `id` | Notification ID | Required |
Delete all notifications from the server.
### Resource information
{{< api_method_info auth="Yes" user="Yes" scope="write write:notifications" version="0.0.0" >}}
## POST /api/v1/push/subscription