From ee2c3ce359184feec894dd403165a21836382a18 Mon Sep 17 00:00:00 2001 From: sachaarbonel Date: Wed, 18 Sep 2024 17:59:28 +0200 Subject: [PATCH] deactivate user --- .../docs/api/_common_/deactivate-reactivate.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/deactivate-reactivate.mdx b/docusaurus/video/docusaurus/docs/api/_common_/deactivate-reactivate.mdx index 599fe135..6cb63088 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/deactivate-reactivate.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/deactivate-reactivate.mdx @@ -37,6 +37,21 @@ response = client.deactivate_users(user_ids=[alice.id, bob.id]) + + +```go +// deactivate one user +client.DeactivateUser(ctx, alice.ID, &DeactivateUserRequest{}) + +// reactivates the user +client.ReactivateUser(ctx, alice.ID, &ReactivateUserRequest{}) + +// deactivates users in bulk, this is an async operation +response = client.DeactivateUsers(ctx, &DeactivateUsersRequest{UserIDs: []string{alice.ID, bob.ID}}) +``` + + + ```bash