UpsertProductionPlanInput
Input for creating or overwriting a production plan together with its full set of planned operations and edges in one transaction.
Fields
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.
Owning batch form; supply exactly one of jobId or batchComponentId on creation. Owner is immutable.
TypeID of the job (job_…) this plan manufactures. All referenced operations must belong to it.
Plan name. Must not be blank.
Lifecycle state to write. Defaults to DRAFT. Setting ACTIVE archives every other active plan of the same owner in the same transaction.
Possible values (3)
DRAFTA work-in-progress plan: freely editable, and not the plan the job is manufactured from.
ACTIVEThe one plan the job is currently manufactured from. Activating a plan archives every other active plan of the same owner in the same transaction.
ARCHIVEDSuperseded and kept only for history — either archived automatically when another plan of the job was activated, or retired by hand.
The plan's full set of production steps. Replaces any existing steps (delete-then-insert), so previously issued planned-operation ids are not preserved.
The plan's full set of dependency edges, addressing steps by their index in plannedOperations. Replaces any existing edges and must form a DAG.
Referenced by (1)
Exact type SDL
"""
Input for creating or overwriting a production plan together with its full set of planned operations and edges in one transaction.
"""
input UpsertProductionPlanInput {
"""
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.
"""
id: ProductionPlanID
"""
Owning batch form; supply exactly one of jobId or batchComponentId on creation. Owner is immutable.
"""
batchComponentId: BatchComponentID
"""
TypeID of the job (`job_…`) this plan manufactures. All referenced operations must belong to it.
"""
jobId: JobID
"""Plan name. Must not be blank."""
name: String!
"""
Lifecycle state to write. Defaults to DRAFT. Setting ACTIVE archives every other active plan of the same owner in the same transaction.
"""
status: ProductionPlanStatus
"""
The plan's full set of production steps. Replaces any existing steps (delete-then-insert), so previously issued planned-operation ids are not preserved.
"""
plannedOperations: [PlannedOperationInput!]!
"""
The plan's full set of dependency edges, addressing steps by their index in plannedOperations. Replaces any existing edges and must form a DAG.
"""
edges: [PlannedEdgeInput!]!
}