updateTeamPrivacyWithHttpInfo method
Future<Response>
updateTeamPrivacyWithHttpInfo(
- String teamId,
- MmUpdateTeamPrivacyRequest mmUpdateTeamPrivacyRequest
Update teams's privacy
Updates team's privacy allowing changing a team from Public (open) to Private (invitation only) and back. Minimum server version: 5.24 ##### Permissions manage_team
permission for the team of the team.
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
MmUpdateTeamPrivacyRequest mmUpdateTeamPrivacyRequest (required):
Implementation
Future<Response> updateTeamPrivacyWithHttpInfo(
String teamId,
MmUpdateTeamPrivacyRequest mmUpdateTeamPrivacyRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/privacy'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody = mmUpdateTeamPrivacyRequest;
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,
);
}