patchTeamWithHttpInfo method
Patch a team
Partially update a team by providing only the fields you want to update. Omitted fields will not be updated. 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
-
MmPatchTeamRequest mmPatchTeamRequest (required): Team object that is to be updated
Implementation
Future<Response> patchTeamWithHttpInfo(
String teamId,
MmPatchTeamRequest mmPatchTeamRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/patch'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody = mmPatchTeamRequest;
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,
);
}