Skip to main content

Unlink Dynamic Analysis results from an application profile with the REST API

You can use the Dynamic Analysis API to unlink scan results from an application profile when you no longer want to associate the results with a specific application.

After unlinking results from an application profile, all future scan results are no longer associated with that application. The results from previous scans remain available and you can link them to the same or a different application profile.

To complete this task:

  1. Send the following request to get a list of analyses for your organization:

    http --auth-type=veracode_hmac GET "https://api.veracode.com/was/configservice/v1/analyses/"
  2. Locate the ID of the analysis that contains the scan to unlink.

  3. Send the following request to get a list of scans for an analysis, where analysis_id is the analysis ID you obtained from the previous step:

    http --auth-type=veracode_hmac GET "https://api.veracode.com/was/configservice/v1/analyses/{analysis_id}/scans"
  4. Locate the ID of the scan to unlink.

  5. Send the following request to unlink the scan from its associated application profile, where scan_id is the scan ID you obtained from the previous step:

    http --auth-type=veracode_hmac PUT "https://api.veracode.com/was/configservice/v1/scans/{scan_id}?method=PATCH" < input.json

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

    { 
    "linked_platform_app_uuid":""
    }

    In this example, linked_platform_app_uuid has an empty value. Because scan results can only be linked to a single application profile, the empty value specifies to unlink the associated scan.