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>2021-04-15 12:15:14 +0300
committerJoas Schilling <coding@schilljs.com>2021-04-15 12:15:14 +0300
commit67703b64a57e4b2a8ab9d2544c4379b2ccd007a5 (patch)
tree401afa85bf01f2846b0ba5da8bbf7ebed9d84d58 /docs
parentaff3a20209ec4169802bed737e83b566bd18010e (diff)
Fix the admin notification API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/admin-notifications.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/admin-notifications.md b/docs/admin-notifications.md
index bfb25cf..39e9702 100644
--- a/docs/admin-notifications.md
+++ b/docs/admin-notifications.md
@@ -28,9 +28,13 @@ Options:
## HTTP request
+> ⚠️ The URL had to be changed when switching from Nextcloud 20 to 21:
+> * 20 and earlier: ocs/v2.php/apps/admin_notifications/api/v1/notifications/{user}
+> * 21 and later: ocs/v2.php/apps/notifications/api/v2/admin_notifications/{user}
+
```
curl -H "OCS-APIREQUEST: true" -X POST \
- https://admin:admin@localhost/ocs/v2.php/apps/admin_notifications/api/v1/notifications/admin \
+ https://admin:admin@localhost/ocs/v2.php/apps/notifications/api/v1/admin_notifications/admin \
-d "shortMessage=Short message up to 255 characters" \
-d "longMessage=Optional: longer message with more details, up to 4000 characters"
```