Finish operation

Finishes an operation for one worker assignment: an active-processing operation closes its work session, a passive-processing one closes the addressed result.

As in the Internet-kiosk, finishing the last outstanding operation also finishes the manufacturing order when it can be completed. When its materials cannot be consumed yet (for example, their status is Requested), the operation is finished, the order stays Paused and an important note explaining why is added to it; make the booked materials consumable or release their bookings, then finish the order explicitly with POST /manufacturing-orders/{manufacturing_order_id}/finish.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Manufacturing order ID.

integer
required

Operation ID, as listed among the operations of the manufacturing order in REST API v1.

Body Params

The processing type of the addressed operation selects the body: the active-processing shape for an attended operation, the passive-processing one otherwise. A field belonging to the other shape is rejected.

Finishes an active-processing operation for one worker assignment, reporting what it produced. A result_id belongs to a passive-processing finish and is rejected here.

integer
required

Worker assignment ID returned as operations[].stations[].workers[].worker_id by REST API v1. It identifies an operation assignment, not a user.

string

Quantity produced since the last start, as a decimal string. Required whenever a work session is open, so a finish that follows a start always carries it. It must be omitted only when no session is open and the last pause already recorded a positive quantity: the operation is then finished on that quantity. A disassembly operation produces no main quantity, so it must report 0 and list the results in additional_products.

additional_products
array of objects

Co-products or disassembly outputs to report alongside the operation. A disassembly order may report the outputs planned for the manufacturing order; any other order the co-products defined on the bill of materials this operation is performed against, and only while the co-products functionality is enabled. Each article_id may appear only once.

additional_products
Responses
204

Operation finished

401

Unauthorized

404

Manufacturing order, operation or worker assignment not found; on a passive-processing finish also an unknown result_id, or one belonging to another worker assignment

429

Too many requests

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json