putRemoveBadgeWithHttpInfo method

Future<Response> putRemoveBadgeWithHttpInfo(
  1. String tenantId,
  2. String badgeId, [
  3. PutRemoveBadgeOptions? options
])

Performs an HTTP 'PUT /auth/my-account/moderate-comments/mod_api/remove-badge' operation and returns the Response. Parameters:

Implementation

Future<Response> putRemoveBadgeWithHttpInfo(String tenantId, String badgeId, [ PutRemoveBadgeOptions? options ]) async {
  final userId = options?.userId;
  final commentId = options?.commentId;
  final broadcastId = options?.broadcastId;
  final sso = options?.sso;
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/mod_api/remove-badge';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
    queryParams.addAll(_queryParams('', 'badgeId', badgeId));
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'userId', userId));
  }
  if (commentId != null) {
    queryParams.addAll(_queryParams('', 'commentId', commentId));
  }
  if (broadcastId != null) {
    queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}