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.
curl -X DELETE "https://api.confident-ai.com/v2/attack-methods/{attackMethodId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "Prompt Injection"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/threats/attacks",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
attackMethodIdstringRequiredThe id of the attack method, as the list returns it. A method's catalog name also resolves.
Response
Reset Method succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to an attack method by its id.
Show 1 propertyHide 1 property
idstringThe id of the attack method.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.