createJobWithHttpInfo method
Create a new job.
Create a new job. Minimum server version: 4.1 ##### Permissions Must have manage_jobs
permission.
Note: This method returns the HTTP Response
.
Parameters:
- MmCreateJobRequest mmCreateJobRequest (required): Job object to be created
Implementation
Future<Response> createJobWithHttpInfo(
MmCreateJobRequest mmCreateJobRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/jobs';
// ignore: prefer_final_locals
Object? postBody = mmCreateJobRequest;
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,
);
}