API – Deleting Existing Entities


This article explains how to delete existing entities via the API.

The deletion operation is very straight-forward and can be done using a DELETE request. However, it is important to consider that the requested entity MUST implement the “delete” method as an instance method, which should take care of either the logical deletion or removing the record altogether.

The format of a DELETE request is as follows:

DELETE https://loanpro.simnang.com/api/public/api/1/odata.svc/{Resource}({id})

Removing a loan with the ID of "1" would look like the following:

DELETE https://loanpro.simnang.com/api/public/api/1/odata.svc/odata.svc/Loans(1)

Or, you could use the following request instead:

DELETE https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(id=1)

How did we do?

Powered by HelpDocs (opens in a new tab)