DeleteMark

[POST] .../v1/doccommercialoffer/deletemark

Toggles deleted_mark for commercial offer document. Use this method to toggle the deletion mark on a commercial offer document before final deletion. The request requires the commercial offer delete-mark permission and the commercial offer tariff option; id is required, the document must satisfy the document lock contract and the document must not already be deleted. The method changes only deleted_mark and writes the delete-mark action log when the update succeeds. Business errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, no affected row, database failures or action log failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Document ID.

Request Example

{
  "id": 1
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}