[POST] .../v1/ordertomovementoperation/moveoperations
Moves an operation from one document to another. Use this method to move selected item lines from one DocOrderToMovement movement order to another DocOrderToMovement document. The request body must contain doc_from_id, doc_to_id and a non-empty ids array; source and destination documents must be different and are locked together through the document lock mechanism. Both documents must be editable, the operation ids must belong to the source movement order document and the caller must have movement order operation move permission; missing fields, identical source and destination ids, denied access, lock conflicts, operations from another document or persistent move errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| doc_from_id | Int64 | Required | Source document ID. |
| doc_to_id | Int64 | Required | Destination document ID. |
| ids | Array of Int64 | Required | Operation IDs to move from the source document to the destination document. |
Request Example
{
"ids": [
8301
],
"doc_from_id": 4401,
"doc_to_id": 4402
}
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": [
8301
]
}
}