[POST] .../v1/doccontract/deletemark
Toggles the contract deletion mark by switching deleted_mark to the opposite value. Use this method to mark or unmark a contract for deletion before calling DocContract/Delete. The request body must contain id, the target contract must exist and not already be hard-deleted and the current request user must have contract deletion-mark permission. The response returns row_affected when the mark is toggled and writes the contract action log entry. Missing body, invalid id, denied access, unavailable tariff, missing contract, no affected rows, database failures and action-log or webhook failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Contract ID. |
Request Example
{
"id": 9101
}
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
}
}