Delete
[POST] .../v1/deal/delete
Soft-deletes a CRM deal. Soft-delete a CRM deal after confirming that it should no longer appear in normal deal lists or pipeline boards. The method validates the deal and pipeline access, marks the deal as deleted, unlinks project tasks that point to it, removes the deal-chat link and returns row_affected with the deleted deal id. The request body is required and id must be positive; linked clients, leads, tickets, source deals and project tasks are not deleted by this method. The caller must have CRM deal delete permission; missing body, invalid id, missing deal, denied access, pipeline ACL failures, storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Deal ID. |
Request Example
{
"id": 230
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1,
"ids": [
230
]
}
}