addTeamMemberWithHttpInfo method
Future<Response>
addTeamMemberWithHttpInfo(
- String teamId,
- MmAddTeamMemberRequest mmAddTeamMemberRequest
Add user to team
Add user to the team by user_id. ##### Permissions Must be authenticated and team be open to add self. For adding another user, authenticated user must have the add_user_to_team
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
MmAddTeamMemberRequest mmAddTeamMemberRequest (required):
Implementation
Future<Response> addTeamMemberWithHttpInfo(
String teamId,
MmAddTeamMemberRequest mmAddTeamMemberRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/members'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody = mmAddTeamMemberRequest;
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,
);
}