ReplaceOprTechMap

[POST] .../v1/productionoperation/replaceoprtechmap

Replaces the tech map linked to a production operation. Use this workflow method after a production operation's item has a different valid posted tech map and the operation row must be relinked before posting production. The request body must contain a production operation id; the method keeps the operation item and quantity unchanged and selects the single posted tech map for the same item, document type and company used by the production document stock. Production must be enabled, the parent production document must be unposted and locked by the current user, exactly one matching posted tech map must exist and the current request user must have production operation edit permission. Missing body, invalid id, disabled production, denied access, lock conflicts, posted documents, missing operations, missing or ambiguous tech maps, no affected rows and storage failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Line item ID.

Request Example

{
  "id": 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
  }
}