Chilkat Online Tools

Xojo / Belvo API Docs / Delete a risk insight

Back to Collection Items

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Dim http As New Chilkat.Http
Dim success As Boolean

http.BasicAuth = True
http.Login = "{{secretId}}"
http.Password = "{{secretPassword}}"

Dim resp As Chilkat.HttpResponse
resp = http.QuickRequest("DELETE","https://domain.com/api/risk-insights/:id/")
If (http.LastMethodSuccess = False) Then
    System.DebugLog(http.LastErrorText)
    Return
End If

System.DebugLog(Str(resp.StatusCode))
System.DebugLog(resp.BodyStr)

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": [
  ]
}