unlinkGroupSyncableForChannelWithHttpInfo method
Delete a link from a channel to a group
Delete a link from a channel to a group ##### Permissions If the channel is private, you must have manage_private_channel_members
permission. Otherwise, you must have the manage_public_channel_members
permission. Minimum server version: 5.11
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> unlinkGroupSyncableForChannelWithHttpInfo(
String groupId,
String channelId,
) async {
// ignore: prefer_const_declarations
final path = r'/groups/{group_id}/channels/{channel_id}/link'
.replaceAll('{group_id}', groupId)
.replaceAll('{channel_id}', channelId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}