createChannelWithHttpInfo method
Create a channel
Create a new channel. ##### Permissions If creating a public channel, create_public_channel
permission is required. If creating a private channel, create_private_channel
permission is required.
Note: This method returns the HTTP Response
.
Parameters:
- MmCreateChannelRequest mmCreateChannelRequest (required): Channel object to be created
Implementation
Future<Response> createChannelWithHttpInfo(
MmCreateChannelRequest mmCreateChannelRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/channels';
// ignore: prefer_final_locals
Object? postBody = mmCreateChannelRequest;
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,
);
}