moveChannelWithHttpInfo method

Future<Response> moveChannelWithHttpInfo(
  1. String channelId,
  2. MmMoveChannelRequest mmMoveChannelRequest
)

Move a channel

Move a channel to another team. Minimum server version: 5.26 ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> moveChannelWithHttpInfo(
  String channelId,
  MmMoveChannelRequest mmMoveChannelRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/channels/{channel_id}/move'.replaceAll('{channel_id}', channelId);

  // ignore: prefer_final_locals
  Object? postBody = mmMoveChannelRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}