Canceling a Pipeline Scan with the REST API

Veracode APIs

Publication
Veracode APIs
Edition date
2023-01-30
Last publication
2023-01-30T21:51:52.865133

Use this command to cancel a scan:

http --auth-type=veracode_hmac PUT "https://api.veracode.com/pipeline_scan/v1/scans/{scan_id}" < input.json        

Obtain the scan_id from the response of the POST to the scans endpoint as described in Configuring a Pipeline Scan with the REST API.

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

{
  "scan_status": "CANCELLED"
}