Edit a Dynamic Analysis to Delete a URL Scan

Veracode APIs

Use this code to edit a Dynamic Analysis to edit a URL scan from the analysis.

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. Find the scan_id using https://api.veracode.com/was/configservice/v1/analyses/{analysis_id}/scans.
  3. Specify the scan_id of the scan you want to remove in a PUT call to https://api.veracode.com/was/configservice/v1/analyses/{analysis_id}?method=PATCH
The following is an example of the payload you would put in a PUT call to delete a URL scan from an analysis.
  "scans": [
      "action_type": "REMOVE",
      "scan_id": "<scan_id>"