patchGroupSyncableForTeamWithHttpInfo method
Future<Response>
patchGroupSyncableForTeamWithHttpInfo(
- String groupId,
- String teamId,
- MmPatchGroupSyncableForTeamRequest mmPatchGroupSyncableForTeamRequest
Patch a GroupSyncable associated to Team
Partially update a GroupSyncable 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 manage_system
permission. Minimum server version: 5.11
Note: This method returns the HTTP Response
.
Parameters:
-
String groupId (required): Group GUID
-
String teamId (required): Team GUID
-
MmPatchGroupSyncableForTeamRequest mmPatchGroupSyncableForTeamRequest (required): GroupSyncable object that is to be updated
Implementation
Future<Response> patchGroupSyncableForTeamWithHttpInfo(
String groupId,
String teamId,
MmPatchGroupSyncableForTeamRequest mmPatchGroupSyncableForTeamRequest,
) async {
// ignore: prefer_const_declarations
final path =
r'/groups/{group_id}/teams/{team_id}/patch'.replaceAll('{group_id}', groupId).replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody = mmPatchGroupSyncableForTeamRequest;
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,
);
}