Can anyone suggest me a solution about how do i delete multiple data using sugarcrm API?
I have a user who have multiple licenses, I want to delete all his licenses at a time on the basis of its user id
How do I do that?
Sorry I don't have any readily available code examples, but if you're using PHP, you can just try reusing the code in Sugar Documentation for calling Rest APIs:
Once you have the list of IDs to delete, you have to generate a payload that looks like:
And call the DELETE License_Module/MassUpdate endpoint (use your correct module name instead of License_Module).
You can use the PHP curl example provided in the link that I shared:
You can replace any sample POST method with DELETE. The URL of the call should be /rest/v10/YOUR_MODULE_NAME/MassUpdate.