[POST] .../v1/ticket/delete
Soft-deletes a CRM ticket. Use this destructive method to soft-delete a CRM ticket after confirming that it should no longer appear in normal ticket lists or SLA workflows. The method validates the ticket, sets tkt_deleted to true, writes an action log record, recalculates client sentiment when the deleted ticket had a sentiment score, commits the change and returns row_affected with the deleted ticket id. The request body is required and id must be positive; linked client, channel, chat, ratings and action log history are not deleted by this method. The caller must have CRM ticket delete permission; missing body, invalid id, missing ticket, client sentiment recalculation errors, database errors, transaction failures and action-log errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Ticket ID. |
Request Example
{
"id": 610
}
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": [
610
]
}
}