Update Manufacturing Order
update_manufacturing_orderEdit one manufacturing order, named by id (GUID) or number. Every omitted field keeps its value; an empty description or internal note clears it. A draft takes every field: priority (1 highest to 10 lowest), assignee, customer, internal production warehouse, planned start and completion days (YYYY-MM-DD), description, internal note, and lines, which replace every existing line (1–50, each an item, that item's own bill of materials and a positive quantity). Once issued, only priority, planned days, description and internal note can change; completed and canceled orders cannot be edited. Assignee, customer, warehouse and planned days can be changed but not cleared. Custom fields are left alone. Preview first; it lists each field that changes. Requires Write + manufacturing.execute on an unpinned operator credential. In-app assistants get a confirm card the user applies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"manufacturingOrder": "<manufacturingOrder>",
"input": "<input>"
},
"name": "update_manufacturing_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The fields to set. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. | |
| manufacturingOrder | Yes | The manufacturing order: its id (GUID) or its number, e.g. MO-001. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| deleted | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| manufacturingOrder | No |