createMaintenanceTaskWithHttpInfo method
Creates a maintenanceTask
Note: This method returns the HTTP Response
.
Parameters:
- MaintenanceTaskDto maintenanceTaskDto (required):
Implementation
Future<Response> createMaintenanceTaskWithHttpInfo(MaintenanceTaskDto maintenanceTaskDto) async {
final path = r'/rest/v1/maintenancetask';
Object postBody = maintenanceTaskDto;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
final contentTypes = <String>['application/json'];
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
final authNames = <String>[r'basicSchema'];
return await apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
nullableContentType,
authNames,
);
}