usersBanWithHttpInfo method
Ban multiple users
Marks multiple users as banned, which means that all their sessions are revoked and they are not allowed to sign in again.
Note: This method returns the HTTP Response.
Parameters:
- UsersBanRequest usersBanRequest (required):
Implementation
Future<http.Response> usersBanWithHttpInfo(
UsersBanRequest usersBanRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/ban';
// ignore: prefer_final_locals
Object? postBody = usersBanRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}