[POST] .../v1/commercialofferoperation/edit
Edits operations document commercial offer. Use this batch method to update item row quantity, price or VAT value in an editable commercial offer document. The request body is an array, requires the commercial offer operation edit permission, must contain 1 to 250 rows and each row must identify an existing operation id with at least one editable value. 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. Business errors such as missing body, empty or oversized batch, invalid row fields, no editable values, 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. |
| price | Decimal | Optional | Item price. |
| quantity | Decimal | Optional | Item quantity. |
| vat_value | Decimal | Optional | VAT rate value. |
Request Example
[
{
"id": 1,
"price": 1.0,
"quantity": 1.0,
"vat_value": 1.0
}
]
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
}
}