[POST] .../v1/techmapoperation/edit
Edits tech map operation. Use this method to update one or more component rows of a technological map before the parent document is posted. The request body is a JSON array batch where every item must contain an operation id; quantity 0 means no quantity change and part_cost 0 means no part-cost change. Production must be enabled, all operations must belong to an editable parent document, the parent document must be locked by the current user and part_cost is validated as 0 through 100 when the parent tech map does not autocalculate cost shares. The response returns row_affected and ids for edited rows and the current request user must have tech map operation edit permission; null, empty or oversized arrays, invalid ids or quantities, missing update fields, disabled production, denied access, lock conflicts, posted documents and storage failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Tech map operation ID to update. |
| part_cost | Decimal | Optional | Percentage share in item cost. If 0, part_cost is not changed; when autocalculation is disabled, non-zero values must be 0 through 100. |
| quantity | Decimal | Optional | New item quantity for the tech map operation. If 0, quantity is not changed. |
Request Example
[
{
"id": 8301,
"quantity": 2.5,
"part_cost": 45
}
]
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
]
}
}