updateTeamWithHttpInfo method
Update a team
Update a team by providing the team object. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions Must have the manage_team
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
MmUpdateTeamRequest mmUpdateTeamRequest (required): Team to update
Implementation
Future<Response> updateTeamWithHttpInfo(
String teamId,
MmUpdateTeamRequest mmUpdateTeamRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody = mmUpdateTeamRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}