[POST] .../v1/productionoperation/moveoperations
Moves production operations between documents. Use this workflow method to move selected production operation rows from one production document to another. The request body must contain doc_from_id, doc_to_id and a non-empty ids array; source and destination documents must be different, the selected operations must all belong to the source document and both documents must be unposted and not deleted. Production must be enabled, the source document and destination document must pass lock checks, the persistent layer locks the destination document during the move and the current request user must have production operation move permission. Missing body, invalid ids, same source and destination, disabled production, denied access, document state conflicts, lock conflicts, membership mismatches, no affected rows or storage failures 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
{
"doc_from_id": 7401,
"doc_to_id": 7402,
"ids": [
8401
]
}
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": [
8401
]
}
}