[POST] .../v1/movementoperation/edit
Edits operation movement. Use this method to update one or more existing item movement lines in a DocMovement document before posting or other state restrictions prevent changes. The request body is a JSON array batch where each item must contain an operation id; optional quantity, order, price and description fields change only the provided values and description is limited to 300 characters. The operation must be a main DocMovement operation, the parent document must be locked by the current user and eligible for editing and the caller must have edit permission; null, empty or oversized arrays, missing ids, invalid quantity values, denied access or document state conflicts are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| description | String | Optional | Operation note. Maximum length is 300 characters. |
| id | Int64 | Required | Movement operation ID to update. |
| order | Int64 | Optional | Operation order. If NULL, the database value is not changed. Ignored for database versions earlier than 363. |
| price | Decimal | Optional | Operation price. When provided, the value is written to the sender and receiver operation rows. |
| quantity | Decimal | Optional | New item quantity for the movement row. When provided, it must be greater than zero and no greater than 999999999. |
Request Example
[
{
"id": 8201,
"quantity": 4,
"price": 18500,
"order": 20,
"description": "Adjusted transfer quantity"
}
]
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": [
8201
]
}
}