executeCommandWithHttpInfo method
Execute a command
Execute a command on a team. ##### Permissions Must have use_slash_commands
permission for the team the command is in.
Note: This method returns the HTTP Response
.
Parameters:
- MmExecuteCommandRequest mmExecuteCommandRequest (required): command to be executed
Implementation
Future<Response> executeCommandWithHttpInfo(
MmExecuteCommandRequest mmExecuteCommandRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/commands/execute';
// ignore: prefer_final_locals
Object? postBody = mmExecuteCommandRequest;
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,
);
}