curl --request DELETE \
--url http://localhost:3333/v1/risks/{id} \
--header 'X-API-Key: <api-key>'{
"message": "Risk deleted successfully",
"deletedRisk": {
"id": "rsk_abc123def456",
"title": "Data breach vulnerability in user authentication system"
},
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}Permanently removes a risk from the organization. This action cannot be undone. Supports both API key authentication (X-API-Key header) and session authentication (cookies + X-Organization-Id header).
curl --request DELETE \
--url http://localhost:3333/v1/risks/{id} \
--header 'X-API-Key: <api-key>'{
"message": "Risk deleted successfully",
"deletedRisk": {
"id": "rsk_abc123def456",
"title": "Data breach vulnerability in user authentication system"
},
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}API key for authentication
Organization ID (required for session auth, optional for API key auth)
Risk ID
"rsk_abc123def456"
Risk deleted successfully
"Risk deleted successfully"
How the request was authenticated
api-key, session Was this page helpful?