Skip to content

Commit

Permalink
docs: Make delete-user-group use curl example system.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerkid authored and timabbott committed Oct 15, 2019
1 parent d1540f7 commit 6a5fdca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions templates/zerver/api/delete-user-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ Delete a [user group](/help/user-groups).

{tab|curl}

``` curl
curl -X DELETE {{ api_url }}/v1/user_groups/42 \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
```
{generate_code_example(curl)|/user_groups/{group_id}:delete|example}

{end_tabs}

Expand Down
1 change: 1 addition & 0 deletions zerver/openapi/test_curl_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'get-presence.md',
'create-user-group.md',
'update-user-group.md',
'delete-user-group.md',
# Endpoint can be called only by administrators.
'create-user.md',
# Endpoint does not accept bot requests
Expand Down

0 comments on commit 6a5fdca

Please sign in to comment.