diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-06-16 08:41:57 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-03-10 16:46:52 +0300 |
commit | 16bcffd64adad9e205fa1f85b1366efca31e020d (patch) | |
tree | e5aa3840c71d632b5df15b828c5ecfcfad0fe997 /docs/development/API/pleroma_api.md | |
parent | 7f413139fb2d4dc008ef351560bada800b4b26a0 (diff) | |
download | pleroma-16bcffd64adad9e205fa1f85b1366efca31e020d.tar.gz |
unify notification settings
Diffstat (limited to 'docs/development/API/pleroma_api.md')
-rw-r--r-- | docs/development/API/pleroma_api.md | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/development/API/pleroma_api.md b/docs/development/API/pleroma_api.md index d896f0ce7..9f93494ec 100644 --- a/docs/development/API/pleroma_api.md +++ b/docs/development/API/pleroma_api.md @@ -301,12 +301,20 @@ See [Admin-API](admin_api.md) Can only accept images - any attempt to upload non-image files will be met with `HTTP 415 Unsupported Media Type`. ## `/api/v1/pleroma/notification_settings` + ### Updates user notification settings + * Method `PUT` * Authentication: required * Params: - * `block_from_strangers`: BOOLEAN field, blocks notifications from accounts you do not follow - * `hide_notification_contents`: BOOLEAN field. When set to true, it removes the contents of a message from the push notification. + * `block_from_strangers`: BOOLEAN field, blocks notifications from accounts you do not follow + * `hide_notification_contents`: BOOLEAN field. When set to true, it removes the contents of a message from the push notification. + * `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 + * `privacy_option`: BOOLEAN field. When set to true, it removes the contents of a message from the push notification. + * `exclude_types`: ARRAY field. What notification types to exclude. * Response: JSON. Returns `{"status": "success"}` if the update was successful, otherwise returns `{"error": "error_msg"}` ## `/api/v1/pleroma/healthcheck` |