createInvitationWithHttpInfo method
Future<Response>
createInvitationWithHttpInfo({
- CreateInvitationRequest? createInvitationRequest,
Create an invitation
Creates a new invitation for the given email address and sends the invitation email. Keep in mind that you cannot create an invitation if there is already one for the given email address. Also, trying to create an invitation for an email address that already exists in your application will result to an error.
Note: This method returns the HTTP Response
.
Parameters:
- CreateInvitationRequest createInvitationRequest: Required parameters
Implementation
Future<http.Response> createInvitationWithHttpInfo({
CreateInvitationRequest? createInvitationRequest,
}) async {
// ignore: prefer_const_declarations
final path = r'/invitations';
// ignore: prefer_final_locals
Object? postBody = createInvitationRequest;
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,
);
}