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