createBulkInvitationsWithHttpInfo method

Future<Response> createBulkInvitationsWithHttpInfo({
  1. List<CreateBulkInvitationsRequestInner>? createBulkInvitationsRequestInner,
})

Create multiple invitations

Use this API operation to create multiple invitations for the provided email addresses. You can choose to send the invitations as emails by setting the notify parameter to true. There cannot be an existing invitation for any of the email addresses you provide unless you set ignore_existing to true for specific email addresses. Please note that there must be no existing user for any of the email addresses you provide, and this rule cannot be bypassed.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> createBulkInvitationsWithHttpInfo({
  List<CreateBulkInvitationsRequestInner>? createBulkInvitationsRequestInner,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/invitations/bulk';

  // ignore: prefer_final_locals
  Object? postBody = createBulkInvitationsRequestInner;

  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,
  );
}