banUserWithHttpInfo method
Ban a user
Marks the given user 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:
- String userId (required): The ID of the user to ban
Implementation
Future<http.Response> banUserWithHttpInfo(
String userId,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/ban'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}