You can use the Dynamic Analysis API to link analysis scan results to an application profile.
Linking results allows you to aggregate all scan types of the target URL into a single report and also evaluate the results against policy.
To complete this task:
Send the following request to get a list of application profiles by name:
http --auth-type=veracode_hmac GET "https://api.veracode.com/was/configservice/v1/platform_applications"
You can also get application details by making a GET call to the Applications API.
Locate the application UUID and add the UUID to the
linked_platform_app_uuidproperty in your JSON file.
Send the following request to create an analysis that links the results to the specified UUID for your application:
http --auth-type=veracode_hmac POST "https://api.veracode.com/was/configservice/v1/analyses" < input.json
The API passes the JSON file that you populate with the necessary values as shown in this example payload:
In this example,
linked_platform_app_uuidspecifies the UUID of the application profile to link to the scan results.
target_urlspecifies the URL configuration for the target web application you want to scan.