phpAx / Belvo API Docs / Delete a risk insight
Back to Collection Items
<?php
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.Http')
$http = new COM("Chilkat.Http");
$http->BasicAuth = 1;
$http->Login = '{{secretId}}';
$http->Password = '{{secretPassword}}';
// resp is a Chilkat.HttpResponse
$resp = $http->QuickRequest('DELETE','https://domain.com/api/risk-insights/:id/');
if ($http->LastMethodSuccess == 0) {
print $http->LastErrorText . "\n";
exit;
}
print $resp->StatusCode . "\n";
print $resp->BodyStr . "\n";
?>
Curl Command
curl -X DELETE
-u '{{secretId}}:{{secretPassword}}'
https://domain.com/api/risk-insights/:id/
Postman Collection Item JSON
{
"name": "Delete a risk insight",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/risk-insights/:id/",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"risk-insights",
":id",
""
],
"variable": [
{
"key": "id",
"value": "uuid",
"description": "The risk-insights.id that you want to get detailed information for."
}
]
}
},
"response": [
]
}