Create a Dynamic Analysis of a Single URL

Veracode APIs

Use this code to submit a simple Dynamic Analysis of a single URL.

To create an analysis of a URL, make a POST call to https://api.veracode.com/was/configservice/v1/analyses, specifying the timeframe number, unit, and schedule parameters.

The following is an example of a Dynamic Analysis for one URL that runs immediately for one day.
{
  "name": "Veracode API Analysis",
  "scans": [
    {
      "scan_config_request": {
        "target_url": {
          "url": "http://www.example.com"
        }
      }
    }
  ],
  "schedule": {
    "duration": {
      "length": 1,
      "unit": "DAY"
    },
    "scheduled": true,
    "now": true
  }
}