diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-15 12:15:14 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-15 12:15:14 +0300 |
commit | 67703b64a57e4b2a8ab9d2544c4379b2ccd007a5 (patch) | |
tree | 401afa85bf01f2846b0ba5da8bbf7ebed9d84d58 /docs | |
parent | aff3a20209ec4169802bed737e83b566bd18010e (diff) |
Fix the admin notification API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/admin-notifications.md | 6 |
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" ``` |