createAllowlistIdentifierWithHttpInfo method

Future<Response> createAllowlistIdentifierWithHttpInfo({
  1. CreateAllowlistIdentifierRequest? createAllowlistIdentifierRequest,
})

Add identifier to the allow-list

Create an identifier allowed to sign up to an instance

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> createAllowlistIdentifierWithHttpInfo({
  CreateAllowlistIdentifierRequest? createAllowlistIdentifierRequest,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/allowlist_identifiers';

  // ignore: prefer_final_locals
  Object? postBody = createAllowlistIdentifierRequest;

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

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

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