createCommandWithHttpInfo method
Create a command
Create a command for a team. ##### Permissions manage_slash_commands
for the team the command is in.
Note: This method returns the HTTP Response
.
Parameters:
- MmCreateCommandRequest mmCreateCommandRequest (required): command to be created
Implementation
Future<Response> createCommandWithHttpInfo(
MmCreateCommandRequest mmCreateCommandRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/commands';
// ignore: prefer_final_locals
Object? postBody = mmCreateCommandRequest;
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,
);
}