diff --git a/defectdojo_api/defectdojo.py b/defectdojo_api/defectdojo.py index a15beada4718226b1477a9fda29be14cfa08ac46..3ab106011cab0032f2cf30db04f93138ce1f59d9 100644 --- a/defectdojo_api/defectdojo.py +++ b/defectdojo_api/defectdojo.py @@ -640,7 +640,7 @@ class DefectDojoAPI(object): ##### Upload API ##### - def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None): + def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"): """Uploads and processes a scan file. :param application_id: Application identifier. @@ -660,7 +660,8 @@ class DefectDojoAPI(object): 'active': ('', active), 'scan_date': ('', scan_date), 'tags': ('', tags), - 'build_id': ('', build) + 'build_id': ('', build), + 'minimum_severity': ('', minimum_severity) } return self._request( @@ -670,7 +671,7 @@ class DefectDojoAPI(object): ##### Re-upload API ##### - def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None): + def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"): """Re-uploads and processes a scan file. :param test_id: Test identifier. @@ -690,7 +691,8 @@ class DefectDojoAPI(object): 'active': ('', active), 'scan_date': ('', scan_date), 'tags': ('', tags), - 'build_id': ('', build) + 'build_id': ('', build), + 'minimum_severity': ('', minimum_severity) } return self._request(