Edit

[POST] .../v1/setpriceoperation/edit

Edits operation document setting prices. Use this method to 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 controller numeric limits. The persistent layer 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 business errors.

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.

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
    ]
  }
}