Use this code to create a Dynamic Analysis with a pause and resume schedule.
To create an analysis with a pause and resume schedule, make a POST call to https://api.veracode.com/was/configservice/v1/analyses, specifying the schedule parameters, including the blackout timeframe.
The following is an example of a Dynamic Analysis that contains a pause and
resume timeframe between 9:00pm and 11:00pm.
{ "name": "Veracode API Analysis", "scans": [ { "scan_config_request": { "target_url": { "url": "http://www.example.com" } } } ], "schedule": { "start_date": "2019-09-27T16:49:00-04:00", "duration": { "length": 1, "unit": "DAY" }, "scan_blackout_schedule": { "blackout_type": "THESE_HOURS", "blackout_start_time": "21:00", "blackout_end_time": "23:00", "blackout_days": null } } }