DeleteMark
[POST] .../v1/doccommercialoffer/deletemark
Toggles the deletion mark of a commercial offer document. 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. Errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, no affected row, storage errors 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
}
}