createBotWithHttpInfo method
Create a bot
Create a new bot account on the system. Username is required. ##### Permissions Must have create_bot
permission. Minimum server version: 5.10
Note: This method returns the HTTP Response
.
Parameters:
- MmCreateBotRequest mmCreateBotRequest (required): Bot to be created
Implementation
Future<Response> createBotWithHttpInfo(
MmCreateBotRequest mmCreateBotRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/bots';
// ignore: prefer_final_locals
Object? postBody = mmCreateBotRequest;
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,
);
}