createModeratorWithHttpInfo method

Future<Response> createModeratorWithHttpInfo(
  1. String tenantId,
  2. CreateModeratorBody createModeratorBody
)

Performs an HTTP 'POST /api/v1/moderators' operation and returns the Response. Parameters:

Implementation

Future<Response> createModeratorWithHttpInfo(String tenantId, CreateModeratorBody createModeratorBody) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/moderators';

  // ignore: prefer_final_locals
  Object? postBody = createModeratorBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));

  const contentTypes = <String>['application/json'];


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