Skip to main content
POST
/
deals
/
delete
Delete deal(s)
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": {}
}

Authorizations

Authorization
string
header
required

API key required in 'Authorization' header. Format: iclosed-<token>

Body

application/json
id
string

Comma-separated list of deal IDs to delete (e.g., '123,456,789')

deleteAll
boolean

Whether to delete all deals matching the criteria in params

params
object

Search parameters for filtering deals when deleteAll is true

Response

Successfully deleted deal(s)

message
string

Success message

data
object

Empty data object

I