Add a URL Scan to a Dynamic Analysis with the REST API

Veracode APIs

Veracode APIs
Edition date
Last publication

You can use the Dynamic Analysis API to add a URL to an existing analysis.

To complete this task:

  1. Add the URL to the scan_config_request property in the JSON file.

  2. Ensure the action_type property is set to ADD in the JSON file.

  3. Run this command to get a list of analyses by name:

    http --auth-type=veracode_hmac GET ""
  4. Run this command, where name is the name of the analysis you want to edit:

    http --auth-type=veracode_hmac GET "{name}"
  5. Obtain the analysis_id of the analysis you want to edit.

  6. Run this command to add the URL:

    http --auth-type=veracode_hmac PUT "{analysis_id}?method=PATCH" < input.json

The API passes the JSON file that you populate with the necessary values as shown in this example payload:

  "name": "Name-of-Your-Dynamic-Analysis",
  "scans": [
      "scan_config_request": {
        "target_url": {
          "url": ""
      "action_type": "ADD"