2020-06-19 07:30:42 +02:00
|
|
|
# Update a user group
|
2019-06-25 21:43:53 +02:00
|
|
|
|
2020-07-16 20:39:53 +02:00
|
|
|
{generate_api_description(/user_groups/{user_group_id}:patch)}
|
2019-06-25 21:43:53 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
2020-07-16 20:39:53 +02:00
|
|
|
{generate_code_example(python)|/user_groups/{user_group_id}:patch|example}
|
2019-06-25 21:43:53 +02:00
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
2020-07-16 20:39:53 +02:00
|
|
|
{generate_code_example(curl)|/user_groups/{user_group_id}:patch|example}
|
2019-06-25 21:43:53 +02:00
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2019-06-25 21:43:53 +02:00
|
|
|
|
2020-07-16 20:39:53 +02:00
|
|
|
{generate_api_arguments_table|zulip.yaml|/user_groups/{user_group_id}:patch}
|
2019-06-25 21:43:53 +02:00
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
2020-07-16 20:39:53 +02:00
|
|
|
{generate_code_example|/user_groups/{user_group_id}:patch|fixture(200)}
|
2019-06-25 21:43:53 +02:00
|
|
|
|
|
|
|
An example JSON response when the user group ID is invalid:
|
|
|
|
|
2020-07-16 20:39:53 +02:00
|
|
|
{generate_code_example|/user_groups/{user_group_id}:patch|fixture(400)}
|