patchGroupSyncableForChannelWithHttpInfo method
Future<Response>
patchGroupSyncableForChannelWithHttpInfo(
- String groupId,
- String channelId,
- MmPatchGroupSyncableForTeamRequest mmPatchGroupSyncableForTeamRequest
Patch a GroupSyncable associated to Channel
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 channelId (required): Channel GUID
-
MmPatchGroupSyncableForTeamRequest mmPatchGroupSyncableForTeamRequest (required): GroupSyncable object that is to be updated
Implementation
Future<Response> patchGroupSyncableForChannelWithHttpInfo(
String groupId,
String channelId,
MmPatchGroupSyncableForTeamRequest mmPatchGroupSyncableForTeamRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/groups/{group_id}/channels/{channel_id}/patch'
.replaceAll('{group_id}', groupId)
.replaceAll('{channel_id}', channelId);
// 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,
);
}