postBanUserUndoWithHttpInfo method
Future<Response>
postBanUserUndoWithHttpInfo(
- String tenantId,
- BanUserUndoParams banUserUndoParams, [
- String? sso
Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/ban-user/undo' operation and returns the Response.
Parameters:
-
String tenantId (required):
-
BanUserUndoParams banUserUndoParams (required):
-
String sso:
Implementation
Future<Response> postBanUserUndoWithHttpInfo(String tenantId, BanUserUndoParams banUserUndoParams, [ String? sso ]) async {
// ignore: prefer_const_declarations
final path = r'/auth/my-account/moderate-comments/mod_api/ban-user/undo';
// ignore: prefer_final_locals
Object? postBody = banUserUndoParams;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}