2019-06-24 22:27:06 +02:00
|
|
|
# Create User Group
|
|
|
|
|
|
|
|
Create a new [user group](/help/user-groups).
|
|
|
|
|
|
|
|
`POST {{ api_url }}/v1/user_groups/create`
|
|
|
|
|
|
|
|
## 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}
|
|
|
|
|
|
|
|
## Arguments
|
|
|
|
|
|
|
|
{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)}
|