setTrustFactorWithHttpInfo method

Future<Response> setTrustFactorWithHttpInfo(
  1. String tenantId, [
  2. SetTrustFactorOptions? options
])

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

Implementation

Future<Response> setTrustFactorWithHttpInfo(String tenantId, [ SetTrustFactorOptions? options ]) async {
  final userId = options?.userId;
  final trustFactor = options?.trustFactor;
  final sso = options?.sso;
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/mod_api/set-trust-factor';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'userId', userId));
  }
  if (trustFactor != null) {
    queryParams.addAll(_queryParams('', 'trustFactor', trustFactor));
  }
  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,
  );
}