2021-05-22 13:21:18 +02:00
|
|
|
{generate_api_title(/users/{user_id}:delete)}
|
2020-02-14 22:02:24 +01:00
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/users/{user_id}:delete)}
|
2020-02-14 22:02:24 +01:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
|
|
|
{generate_code_example(python)|/users/{user_id}:delete|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
|
|
|
{generate_code_example(curl)|/users/{user_id}:delete|example}
|
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2020-02-14 22:02:24 +01:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/users/{user_id}:delete}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/users/{user_id}:delete|fixture(200)}
|
|
|
|
|
|
|
|
An example JSON error response when attempting to deactivate the only
|
2020-08-22 00:25:04 +02:00
|
|
|
organization owner in an organization:
|
2020-02-14 22:02:24 +01:00
|
|
|
|
|
|
|
{generate_code_example|/users/{user_id}:delete|fixture(400)}
|