Perform

[POST] .../v1/docproduction/perform

Posts production document. Use this workflow method to post a production document after ProductionOperation rows define produced or disassembled items. Posting sets the document performed flag and the database triggers create linked stock in/out documents for the production movement. Production must be enabled, the document must be locked by the current user, outside closed-period restrictions, contain operations, use posted tech maps from the same company as the document stock and satisfy stock quantity checks unless production over-limit is allowed by settings. The current request user must have production document perform permission; missing body, invalid id, disabled production, denied access, lock conflicts, missing operations, missing or unposted tech maps, stock-company mismatches, insufficient quantity, no affected rows, database failures or webhook failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Record ID.

Request Example

{
  "id": 7401
}

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
  }
}