How to create api method to delete/archeive data from api end point

Hi Team,

Working on creating an api method to delete/archeive data from api end point 

Get Method to get the data 

Post method to post the data to api end point

Need to delete this sample data from the database 

need to create delete and put methods for the same 

Hi Saif,

Which problem are you facing when you implement the "DeleteClaim" method this way?

Created delete method with this logic 

tried to consume this method and test it using outsystems , the  data is getting  deleted from the database. even if i enter only the id. How to make sure it only deletes when complete inforemation is provided. Also need to enter a message in the logic flow.


So have you tried to debug your API method to see if it's properly called, and if so if the data provided is correct, and if so whether the deletes are executed as expected? You cannot expect us to debug your code for you, that's what a developer has to do themself!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.