2019-06-25 21:43:53 +02:00
|
|
|
# Update User Group
|
|
|
|
|
|
|
|
Update the name or description of a [user group](/help/user-groups).
|
|
|
|
|
|
|
|
`PATCH {{ api_url }}/v1/user_groups/{group_id}`
|
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
|
|
|
{generate_code_example(python)|/user_groups/{group_id}:patch|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
2019-10-14 10:11:16 +02:00
|
|
|
{generate_code_example(curl)|/user_groups/{group_id}:patch|example}
|
2019-06-25 21:43:53 +02:00
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
## Arguments
|
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/user_groups/{group_id}:patch}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/user_groups/{group_id}:patch|fixture(200)}
|
|
|
|
|
|
|
|
An example JSON response when the user group ID is invalid:
|
|
|
|
|
|
|
|
{generate_code_example|/user_groups/{group_id}:patch|fixture(400)}
|