Canceling a Pipeline Scan with the REST API

Veracode APIs

Veracode APIs
Edition date
Last publication

Use this command to cancel a scan:

http --auth-type=veracode_hmac PUT "{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"