Chilkat Online Tools

Python / Belvo API Docs / Destroy

Back to Collection Items

import sys
import chilkat2

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

http = chilkat2.Http()

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

# resp is a CkHttpResponse
resp = http.QuickRequest("DELETE","https://domain.com/investments/portfolios/:id/")
if (http.LastMethodSuccess == False):
    print(http.LastErrorText)
    sys.exit()

print(str(resp.StatusCode))
print(resp.BodyStr)

Curl Command

curl -X DELETE
	-u '{{secretId}}:{{secretPassword}}'
https://domain.com/investments/portfolios/:id/

Postman Collection Item JSON

{
  "name": "Destroy",
  "request": {
    "method": "DELETE",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/investments/portfolios/:id/",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "investments",
        "portfolios",
        ":id",
        ""
      ],
      "variable": [
        {
          "key": "id",
          "value": null
        }
      ]
    }
  },
  "response": [
  ]
}