[POST] .../v1/inventoryoperation/delete
Deletes operations inventory. Use this destructive batch method to delete inventory operation rows from an editable inventory document. The request body is an array, requires the inventory operation delete permission, must contain 1 to 250 rows and every row must contain a positive operation id. The operations must belong to inventory documents that pass membership checks, the parent document must exist and satisfy the document lock contract and rows are deleted logically by setting the operation deleted flag. Business errors such as missing body, empty or oversized batch, invalid IDs, denied access, operation or document not found, closed/deleted document restrictions, lock failure, database failures or no affected rows are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Inventory operation ID to delete. |
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
}
}