createGroupChannelWithHttpInfo method
Create a group message channel
Create a new group message channel to group of users. If the logged in user's id is not included in the list, it will be appended to the end. ##### Permissions Must have create_group_channel
permission.
Note: This method returns the HTTP Response
.
Parameters:
- List<String> requestBody (required): User ids to be in the group message channel
Implementation
Future<Response> createGroupChannelWithHttpInfo(
List<String> requestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/channels/group';
// ignore: prefer_final_locals
Object? postBody = requestBody;
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,
);
}