inviteUsersToTeamWithHttpInfo method
Invite users to the team by email
Invite users to the existing team using the user's email. The number of emails that can be sent is rate limited to 20 per hour with a burst of 20 emails. If the rate limit exceeds, the error message contains details on when to retry and when the timer will be reset. ##### Permissions Must have invite_user
and add_user_to_team
permissions for the team.
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
List<String> requestBody (required): List of user's email
Implementation
Future<Response> inviteUsersToTeamWithHttpInfo(
String teamId,
List<String> requestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/invite/email'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody = requestBody;
final queryParams = <MmQueryParam>[];
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,
);
}