Launch Week 02 wrapped — explore all five launches

Delete Vulnerability

DELETEhttps://api.confident-ai.com/v2/vulnerabilities/{vulnerabilityId}

Permanently deletes a vulnerability your project defined, along with its types. A vulnerability Confident AI ships that this project has never customised has nothing to delete, and is rejected.

DELETE/v2/vulnerabilities/{vulnerabilityId}
curl -X DELETE "https://api.confident-ai.com/v2/vulnerabilities/{vulnerabilityId}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<VULNERABILITY-ID>"
  },
  "link": "https://app.confident-ai.com/project/<PROJECT-ID>/threats/vulnerabilities",
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • vulnerabilityIdstringRequired

    The id of the vulnerability, as the list returns it. A built-in's catalog name also resolves.

Response

Delete Vulnerability succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A reference to a vulnerability by its id.

    Show 1 propertyHide 1 property
    • idstring

      The id of the vulnerability, generated by Confident AI.

  • linkstring

    This is the URL of the resource on the Confident AI platform.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI