docs: Make update-subscription-properties use curl example system.

This commit is contained in:
Vishnu Ks 2019-10-10 09:06:47 +00:00 committed by Tim Abbott
parent 89d82ab827
commit 4364e31d69
3 changed files with 3 additions and 11 deletions

View File

@ -15,16 +15,7 @@ per-stream notification settings.
{tab|curl}
``` curl
curl -X POST {{ api_url }}/v1/users/me/subscriptions/properties \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d 'subscription_data=[{"stream_id": 1, \
"property": "pin_to_top", \
"value": true}, \
{"stream_id": 3, \
"property": "color", \
"value": 'f00'}]'
```
{generate_code_example(curl)|/users/me/subscriptions/properties:post|example}
{end_tabs}

View File

@ -26,6 +26,7 @@ exclude_list = [
'get-message-history.md',
'update-message-flags.md',
'mark-as-read-bulk.md',
'update-subscription-properties.md',
]
def test_generated_curl_examples_for_success(client: Client) -> None:

View File

@ -1815,7 +1815,7 @@ paths:
type: array
items:
type: object
example: [{"stream_id": 1, "property": "pin_to_top", "value": true}]
example: [{"stream_id": 1, "property": "pin_to_top", "value": true}, {"stream_id": 3, "property": "color", "value": '#f00f00'}]
required: true
security:
- basicAuth: []