Edit
[POST] .../v1/setpriceoperation/edit
Updates item lines in a price setting document. Update one or more existing price setting operation rows before the parent document is posted. The request body is a JSON array batch where every item must contain an operation id; base_value and new_value are optional, update only when present, must be zero or greater and must stay within the method numeric limits. The method requires all passed operations to belong to one valid price setting document and the parent document must be locked by the current user and remain editable. The response returns row_affected and ids for edited operations and the current request user must have price setting operation edit permission; null, empty or oversized arrays, missing ids, missing update fields, denied access, lock conflicts, invalid document state and storage failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| base_value | Decimal | Optional | Current price (base price). Null means no change; non-null values must be zero or greater. |
| id | Int64 | Required | Price setting document operation ID. |
| new_value | Decimal | Optional | New price. Null means no change; non-null values must be zero or greater. |
| order | Int64 | Optional | Operation order inside the document. If null, the stored order is not changed. Ignored for database versions earlier than 407. |
Request Example
[
{
"id": 8101,
"base_value": 42500,
"new_value": 48500
}
]
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1,
"ids": [
8101
]
}
}