docs: Make update-message-flags use curl example system.

This commit is contained in:
Vishnu Ks 2019-10-09 10:30:12 +00:00 committed by Tim Abbott
parent 19ee518f2e
commit f0b099dbc0
2 changed files with 2 additions and 7 deletions

View File

@ -44,13 +44,7 @@ zulip(config).then((client) => {
{tab|curl}
``` curl
curl -X POST {{ api_url }}/v1/messages/flags \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d "messages=[4,8,15]" \
-d "op=add" \
-d "flag=starred"
```
{generate_code_example(curl)|/messages/flags:post|example}
{end_tabs}

View File

@ -24,6 +24,7 @@ exclude_list = [
'update-message.md',
'delete-message.md',
'get-message-history.md',
'update-message-flags.md',
]
def test_generated_curl_examples_for_success(client: Client) -> None: