Chilkat Online Tools

C++ / Belvo API Docs / Delete a risk insight

Back to Collection Items

#include <CkHttp.h>
#include <CkHttpResponse.h>

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

    CkHttp http;
    bool success;

    http.put_BasicAuth(true);
    http.put_Login("{{secretId}}");
    http.put_Password("{{secretPassword}}");

    CkHttpResponse *resp = http.QuickRequest("DELETE","https://domain.com/api/risk-insights/:id/");
    if (http.get_LastMethodSuccess() == false) {
        std::cout << http.lastErrorText() << "\r\n";
        return;
    }

    std::cout << resp->get_StatusCode() << "\r\n";
    std::cout << resp->bodyStr() << "\r\n";
    delete resp;
    }

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