2020-06-19 07:30:42 +02:00
|
|
|
# Create a user group
|
2019-06-24 22:27:06 +02:00
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/user_groups/create:post)}
|
2019-06-24 22:27:06 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
|
|
|
{generate_code_example(python)|/user_groups/create:post|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
2019-10-14 10:07:28 +02:00
|
|
|
{generate_code_example(curl)|/user_groups/create:post|example}
|
2019-06-24 22:27:06 +02:00
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2019-06-24 22:27:06 +02:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/user_groups/create:post}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/user_groups/create:post|fixture(200)}
|
|
|
|
|
|
|
|
An example JSON error response for when the one of the users does not exist:
|
|
|
|
|
|
|
|
{generate_code_example|/user_groups/create:post|fixture(400)}
|