Edit a Dynamic Analysis to Add a URL Scan

Veracode APIs

Use this code to edit an existing Dynamic Analysis to add an additional URL scan.

To edit an existing analysis:
  1. Find the analysis_id of the analysis you want to edit using https://api.veracode.com/was/configservice/v1/analyses?name={name}, where name is the name of the analysis you want to edit.
  2. Add the additional URL you want to scan in a PUT call to https://api.veracode.com/was/configservice/v1/analyses/{analysis_id}?method=PATCH.

This is an example payload in the PUT call to edit an existing analysis:

  "scans": [
      "scan_config_request": {
        "target_url": {
          "url": "https://www.example.com"
      "action_type": "ADD"