cURL
curl --request POST \ --url https://api-dev.iclosed.io/deals/delete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "<string>", "deleteAll": true, "params": { "dataTable": "deals", "search": "<string>", "assigned": "PENDING", "setterIds": [ 123 ], "userContacts": true, "filters": {} } }'
{ "message": "<string>", "data": {} }
Delete a deal
API key required in 'Authorization' header. Format: iclosed-<token>
Comma-separated list of deal IDs to delete (e.g., '123,456,789')
Whether to delete all deals matching the criteria in params
Search parameters for filtering deals when deleteAll is true
Show child attributes
Successfully deleted deal(s)
Success message
Empty data object