addTeamMemberFromInviteWithHttpInfo method
Add user to team from invite
Using either an invite id or hash/data pair from an email invite link, add a user to a team. ##### Permissions Must be authenticated.
Note: This method returns the HTTP Response
.
Parameters:
- String token (required): Token id from the invitation
Implementation
Future<Response> addTeamMemberFromInviteWithHttpInfo(
String token,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/members/invite';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'token', token));
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}