mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Currently, there was no markdown page for deactivate-own-user API endpoint. Created deactivate-own-user.md for the API page and created a new owner client in test-api to reactivate the client deactivated during testing. Also changed endpoint name from deactivate-my-account to deactivate-own-user, for better consistency with other endpoints. Fixes #16163.
634 B
634 B
Deactivate own user
{generate_api_description(/users/me:delete)}
Usage examples
{start_tabs} {tab|python}
{generate_code_example(python)|/users/me:delete|example}
{tab|curl}
{generate_code_example(curl)|/users/me:delete|example}
{end_tabs}
Parameters
{generate_api_arguments_table|zulip.yaml|/users/me:delete}
Response
Example response
A typical successful JSON response may look like:
{generate_code_example|/users/me:delete|fixture(200)}
An example JSON error response when attempting to deactivate the only organization owner in an organization:
{generate_code_example|/users/me:delete|fixture(400)}