[POST] .../v1/commercialofferoperation/delete
Deletes operations document commercial offer. Use this destructive batch method to delete item rows from an editable commercial offer document. The request body is an array, requires the commercial offer operation delete permission, must contain 1 to 250 rows and every row must contain a positive operation id. All operations in the batch must belong to one commercial offer document and that document must not be deleted or marked for deletion and must satisfy the document lock contract; rows are deleted logically by setting the operation deleted flag. Business errors such as missing body, empty or oversized batch, invalid IDs, denied access, operations not found, operations from different documents, deleted or deletion-marked document, 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 | Commercial offer document operation 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
}
}