patchGroupSyncableForChannelWithHttpInfo method

Future<Response> patchGroupSyncableForChannelWithHttpInfo(
  1. String groupId,
  2. String channelId,
  3. 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:

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,
  );
}