From 38f8e77a919ebbc32a614f317c69536df7a9a19f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 8 Jul 2019 21:22:31 +0200 Subject: [PATCH] Update content/en/api/rest/notifications.md --- content/en/api/rest/notifications.md | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/content/en/api/rest/notifications.md b/content/en/api/rest/notifications.md index 2c552c3b..a4c41db9 100644 --- a/content/en/api/rest/notifications.md +++ b/content/en/api/rest/notifications.md @@ -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