deactivateUsersByIds method

Future<ClientResponse<UserDeleteResponse, Errors>> deactivateUsersByIds(
  1. List<String> userIds
)

Deactivates the users with the given ids.

@param {List

Implementation

Future<ClientResponse<UserDeleteResponse, Errors>> deactivateUsersByIds(
    List<String> userIds) {
  return _start<UserDeleteResponse, Errors>()
      .withUri('/api/user/bulk')
      .withParameter('userId', userIds)
      .withParameter('dryRun', false)
      .withParameter('hardDelete', false)
      .withMethod('DELETE')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => UserDeleteResponse.fromJson(d)))
      .go();
}