

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Schedule Recurring scan Via API call
Hi,
I am trying to do use the API to schedule a recurring scan that will happen once a month on a weekday. So for example, the scan will happen on the second Monday of each month.
I am able to create a one time scheduled scan, or do scheduled scan that runs weekly, but I cannot get the monthly schedule right.
I have the following in postman, with the variables to be resolved during runtime:
POST /WIE/REST/api/v2/projectVersions HTTP/1.1
{
"name": {{ScanName}},
"startDate": {{Time}},
"projectVersion": {
"id": {{ProjectID}},
"siteID": {{SiteID}}
},
"timeZone": "UTC",
"priority": 3,
"isRecurring": "false",
"scanTemplateID": {{ScanTemplateID}},
If I turn it to be weekly, I change to
"isRecurring": "true",
"recurringRange":{
noEndDate:" true,
}
"recurringPattern": {
"recurringType": 1,
"dayOfWeekMask": 2
}
I am trying to change the recurrence type to 3 - Monthly on the Nth instance of a certain day of the week within the month. But I think I then also need a combination of the instance or interval, and cant get those values right.
Thanks for any help!