mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
docs: Make update-notification-settings use curl example system.
This commit is contained in:
@@ -14,21 +14,8 @@ per-stream notification settings.
|
||||
{generate_code_example(python)|/settings/notifications:patch|example}
|
||||
|
||||
{tab|curl}
|
||||
``` curl
|
||||
curl -X PATCH {{ api_url }}/v1/settings/notifications \
|
||||
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
|
||||
-d "enable_stream_desktop_notifications=true" \
|
||||
-d "enable_stream_email_notifications=true" \
|
||||
-d "enable_stream_push_notifications=true" \
|
||||
-d "enable_stream_sounds=true" \
|
||||
-d "enable_desktop_notifications=true" \
|
||||
-d "enable_sounds=true" \
|
||||
-d "enable_offline_email_notifications=true" \
|
||||
-d "enable_offline_push_notifications=true" \
|
||||
-d "enable_online_push_notifications=true" \
|
||||
-d "enable_digest_emails=true" \
|
||||
-d "message_content_in_email_notifications=true"
|
||||
```
|
||||
|
||||
{generate_code_example(curl, include=["enable_offline_push_notifications", "enable_online_push_notifications"])|/settings/notifications:patch|example}
|
||||
|
||||
{end_tabs}
|
||||
|
||||
|
||||
@@ -782,6 +782,7 @@ markdown_docs_length_exclude = {
|
||||
"templates/zerver/api/incoming-webhooks-walkthrough.md",
|
||||
# This macro has a long indented URL
|
||||
"templates/zerver/help/include/git-webhook-url-with-branches-indented.md",
|
||||
"templates/zerver/api/update-notification-settings.md",
|
||||
# These two are the same file and have some too-long lines for GitHub badges
|
||||
"README.md",
|
||||
"docs/overview/readme.md",
|
||||
|
||||
@@ -36,6 +36,7 @@ exclude_list = [
|
||||
'remove-linkifiers.md',
|
||||
# Endpoint does not accept bot requests
|
||||
'get-user-groups.md',
|
||||
'update-notification-settings.md',
|
||||
# Example files do not exist
|
||||
'upload-custom-emoji.md',
|
||||
'upload-file.md',
|
||||
|
||||
@@ -2185,6 +2185,7 @@ paths:
|
||||
description: Notification sound name.
|
||||
schema:
|
||||
type: string
|
||||
format: json
|
||||
example: ding
|
||||
- name: enable_desktop_notifications
|
||||
in: query
|
||||
|
||||
Reference in New Issue
Block a user