Delete
[POST] .../v1/ticket/delete
Soft-deletes a CRM ticket. Soft-delete a CRM ticket after confirming that it should no longer appear in normal ticket lists or SLA workflows. The method marks the ticket as deleted, recalculates client sentiment when the ticket had a sentiment score 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, storage errors are returned as HTTP 200 ErrorResult.
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
]
}
}