DeleteMark

[POST] .../v1/doccontract/deletemark

Toggles the contract deletion mark by switching deleted_mark to the opposite value. 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. Missing body, invalid id, denied access, unavailable tariff, missing contract, no affected rows, storage errors and webhook failures are returned as HTTP 200 ErrorResult.

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
  }
}