Delete Risk Category
(v2)DELETE
Permanently deletes a risk category from its framework, along with the selections and weights it held. The vulnerabilities and attack methods themselves are untouched.
curl -X DELETE "https://api.confident-ai.com/v2/rt-frameworks/{rtFrameworkId}/risk-categories/{riskCategoryId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<RISK-CATEGORY-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
rtFrameworkIdstringRequiredThe id of the red teaming framework the category belongs to.
riskCategoryIdstringRequiredThe id of the risk category.
Response
Delete Risk Category succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to a risk category by its id.
Show 1 propertyHide 1 property
idstringThe id of the risk category, generated by Confident AI.
deprecatedbooleanIndicates if this endpoint is deprecated.