2020-02-14 22:13:01 +01:00
|
|
|
# Update User
|
|
|
|
|
|
|
|
{!api-admin-only.md!}
|
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/users/{user_id}:patch)}
|
2020-02-14 22:13:01 +01:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
|
|
|
{generate_code_example(python)|/users/{user_id}:patch|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
|
|
|
{generate_code_example(curl)|/users/{user_id}:patch|example}
|
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
## Arguments
|
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/users/{user_id}:patch}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/users/{user_id}:patch|fixture(200)}
|
|
|
|
|
|
|
|
A typical unsuccessful JSON response:
|
|
|
|
|
|
|
|
{generate_code_example|/users/{user_id}:patch|fixture(400)}
|