openapi/python_examples: Update deactivate_user example.

This updates the `deactivate_user` example to use
`deactivate_user_by_id`.
This commit is contained in:
Kartik Srivastava 2020-05-17 00:21:21 +05:30 committed by Tim Abbott
parent 7d8a3581a5
commit d2ab5673fd
1 changed files with 1 additions and 5 deletions

View File

@ -222,11 +222,7 @@ def deactivate_user(client: Client) -> None:
# {code_example|start}
# Deactivate a user
user_id = 8
url = 'users/' + str(user_id)
result = client.call_endpoint(
url=url,
method='DELETE',
)
result = client.deactivate_user_by_id(user_id)
# {code_example|end}
validate_against_openapi_schema(result, '/users/{user_id}', 'delete', '200')