Updates only the advancement mode of an existing manufacturing path. This is a focused endpoint that changes how serial numbers advance through the path's steps without modifying the path's name, goal quantity, or step sequence. It delegates to the same pathService.updatePath() method as the general Update Path endpoint, but accepts only the advancementMode field.
Use this endpoint when production conditions change and you need to relax or tighten step enforcement on a path. For example, switching from "strict" to "flexible" mid-production allows operators to skip optional steps that are causing bottlenecks, without requiring a full path update.
Serial numbers must complete every step in exact sequential order. No steps can be skipped or deferred. This is the safest mode for regulated manufacturing.
flexible
Serial numbers advance sequentially, but optional steps can be skipped and preferred-dependency steps can be deferred for later completion.
per_step
Each step's advancement behavior is determined by its individual dependencyType and optional settings. Provides the most granular control.
Returned when the advancement mode is successfully updated. The response contains the complete Path object with all fields reflecting the current state after the update. The updatedAt timestamp is refreshed to the current time.
Field
Type
Description
id
string
Unique identifier for the path (unchanged)
jobId
string
The parent job's ID (unchanged)
name
string
The path name (unchanged)
goalQuantity
number
The goal quantity (unchanged)
advancementMode
"strict" | "flexible" | "per_step"
The newly applied advancement mode
steps
ProcessStep[]
The process steps (unchanged)
createdAt
string
ISO 8601 timestamp of original creation (unchanged)
updatedAt
string
ISO 8601 timestamp — refreshed to the current time on successful update
Changing the advancement mode does not retroactively affect serial numbers that have already advanced past steps. It only affects future advancement operations. Serials that skipped steps under "flexible" mode will not be forced back to those steps if you switch to "strict".
This endpoint modifies only the advancementMode field and the updatedAt timestamp. The path name, goal quantity, and step sequence are never touched. For broader updates, use the general Update Path endpoint.
Setting the mode to "strict" on a path with optional steps effectively disables the optional behavior — all steps must be completed in order regardless of their optional flag.
Setting the mode to "per_step" gives the most granular control. In this mode, each step's optional and dependencyType fields determine whether it can be skipped, deferred, or must be completed as a gate.
The updatedAt timestamp is refreshed even if the new mode is the same as the current mode.
There is no optimistic concurrency control. If two clients update the advancement mode simultaneously, the last write wins.