PUT /batch/{batch_key}/serial-temp-links
Create Temporary Link
PUT
/batch/{batch_key}/serial-temp-links
Replace batch temporary component serial links with the provided ones.
Deletes all existing temporary contains edges for batch_key and
re-inserts the supplied links. All links must be unconfirmed (confirmed=False)
and must reference the given batch. Confirmed links must be created via
SerialLinkedEvent instead.
Emits: (direct transaction — no event class)
Required scope: traceability:batch-execution-record:read
Authorizations
OAuth2PasswordBearer
password Flow
Token URL
"/api/auth"Scopes:
"admin"User can access and edit users and system settings"library"User can access and edit products"production"User can access and edit production plans"operator"User can access the operator panel and make production declarations
Parameters
Path Parameters
batch_key*
Type
Requiredstring
Request Body
application/json
JSON { "_from": "SN-LR-001234", "_to": "SN-LR-005678", "_key": "link-001", "wo_key": "WO-2026-001", "phase_key": "phase/ph-01", "component_key": "comp/bom-01", "job_key": "job/job-2026-001", "batch_key": "BATCH-A-042", "confirmed": false, "replaced": false, "reason": "Component replaced due to defect" }
[
]
Responses
Successful Response
application/json
JSON "status": 200, "message": "string", "detail": "string"
{
}