Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-29 18:53:55 +0300
committerJoas Schilling <coding@schilljs.com>2018-02-02 16:01:51 +0300
commit5ce598d4203f9a55d6fed1c9cb930b595b4225bb (patch)
treec25d9d29937cfa5cbe08fe4784ab99147a63bb99 /docs
parent508c1f6853ed30484227f4b4a1bc0134726d1cb8 (diff)
Add an endpoint to delete all notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/ocs-endpoint-v2.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ocs-endpoint-v2.md b/docs/ocs-endpoint-v2.md
index 5b2038b..4518114 100644
--- a/docs/ocs-endpoint-v2.md
+++ b/docs/ocs-endpoint-v2.md
@@ -23,6 +23,7 @@ In order to find out if notifications is installed/enabled on the server you can
"list",
"get",
"delete",
+ "delete-all",
"icons",
"rich-strings"
]
@@ -150,3 +151,10 @@ In order to get a single notification, you can send a GET request against `/ocs/
In order to delete a notification, you can send a DELETE request against `/ocs/v2.php/apps/notifications/api/v2/notifications/{id}`
+
+
+## Deleting all notifications for a user
+
+In order to delete all notifications, you can send a DELETE request against `/ocs/v2.php/apps/notifications/api/v2/notifications`
+
+**Note:** This endpoint was added for Nextcloud 14, so check for the `delete-all` capability first.