diff options
author | kaniini <nenolod@gmail.com> | 2019-04-10 02:10:31 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-04-10 02:10:31 +0000 |
commit | 97395e013e5dac84399769438f8b90cffa38afd5 (patch) | |
tree | 1429546e8d412f5c52b5be77115c87f1bbb831a5 /docs/api/pleroma_api.md | |
parent | 144648de92abea7330cf264b7608634a27bb6bdf (diff) | |
parent | cd90695a349f33b84f287794bae6070e9eec446a (diff) | |
download | pleroma-97395e013e5dac84399769438f8b90cffa38afd5.tar.gz pleroma-97395e013e5dac84399769438f8b90cffa38afd5.zip |
Merge branch 'notification-pleroma-settings' into 'develop'
Notification controls
Closes #738
See merge request pleroma/pleroma!988
Diffstat (limited to 'docs/api/pleroma_api.md')
-rw-r--r-- | docs/api/pleroma_api.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md index 2e8fb04d2..05bcea1b6 100644 --- a/docs/api/pleroma_api.md +++ b/docs/api/pleroma_api.md @@ -116,3 +116,13 @@ See [Admin-API](Admin-API.md) * Params: * `id`: notifications's id * Response: JSON. Returns `{"status": "success"}` if the reading was successful, otherwise returns `{"error": "error_msg"}` +## `/api/pleroma/notification_settings` +### Updates user notification settings +* Method `PUT` +* Authentication: required +* Params: + * `followers`: BOOLEAN field, receives notifications from followers + * `follows`: BOOLEAN field, receives notifications from people the user follows + * `remote`: BOOLEAN field, receives notifications from people on remote instances + * `local`: BOOLEAN field, receives notifications from people on the local instance +* Response: JSON. Returns `{"status": "success"}` if the update was successful, otherwise returns `{"error": "error_msg"}` |