Use this code to create a Dynamic Analysis that repeats on a recurring basis.
To create an analysis with a recurring schedule, make a POST call to https://api.veracode.com/was/configservice/v1/analyses, specifying the schedule parameters and the recurrence configuration.
The following is an example of the code to add to your call when
you want to make your schedule a recurring event.
{ "name": "Veracode API Analysis", "scans": [ { "scan_config_request": { "target_url": { "url": "http://www.example.com" } } } ], "schedule": { "now": true, "duration": { "length": 1, "unit": "DAY" }, "end_date": "", "scan_recurrence_schedule": { "recurrence_type": "WEEKLY", "schedule_end_after": 2, "recurrence_interval": 1, "day_of_week": "FRIDAY" } } }