Launch Week 02 wrapped — explore all five launches

Reset Method

DELETEhttps://api.confident-ai.com/v2/attack-methods/{attackMethodId}

Clears your project's configuration of an attack method, so it runs with the catalog defaults again. The attack method itself belongs to the Confident AI catalog and is not deleted, which makes this safe to repeat.

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

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • attackMethodIdstringRequired

    The id of the attack method, as the list returns it. A method's catalog name also resolves.

Response

Reset Method succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A reference to an attack method by its id.

    Show 1 propertyHide 1 property
    • idstring

      The id of the attack method.

  • linkstring

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

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI