Appearance
UpsertProductionPlanInput
Type: Input
Input for creating or overwriting a production plan together with its full set of planned operations and edges in one transaction.
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| edges | [PlannedEdgeInput!]! | The plan's full set of dependency edges, addressing steps by their index in plannedOperations. Replaces any existing edges and must form a DAG. | |
| id | ProductionPlanID | TypeID of an existing plan (ppl_…) to overwrite in place, keeping its version and createdAt. Omit — or pass an id that no longer exists — to create a new plan at the job's next version. | |
| jobId | JobID! | TypeID of the job (job_…) this plan manufactures. All referenced operations must belong to it. | |
| name | String! | Plan name. Must not be blank. | |
| plannedOperations | [PlannedOperationInput!]! | The plan's full set of production steps. Replaces any existing steps (delete-then-insert), so previously issued planned-operation ids are not preserved. | |
| status | ProductionPlanStatus | Lifecycle state to write. Defaults to DRAFT. Setting ACTIVE archives every other active plan of the same job in the same transaction. |