Skip to main content
POST
Verified DfM fixes: each finding's edit applied to a copy, re-checked, offered only when clean (ss.dfm.fixes/1)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
subject
object
required

As dfm.check's: exactly one of {recipe, units?}, {brep_blob}, {step_blob}, {assembly, options?, request?, plan?, dfa?, mating?, units?} (400 DFM_SUBJECT otherwise).

apply
boolean

Apply the offered fixes (or fixes, as given) and answer the edited subject and its fresh report. Default false.

findings
integer[]

The findings to fix, by index in the report. With rules either selects; both empty: every finding.

Required range: x >= 0
fixes
object[]

Fixes to apply as given (each the fix of an earlier answer's item: {fix: recipe_edits | face_edit | push_pull | edge_fillet | pmi_edit, ...}), skipping the search. Needs apply: true.

material
string

A material the shop's cost section prices (steel 1018, aluminium 6061-t6, abs, zinc zamak 3, ...); aliases accepted.

part
string

The part's name (no ., |, :, braces, * or spaces). Default part.

pmi
object

An ss.pmi/1 set read with the part (MF12's tolerance rules); a TF1 / TF2 fix edits one of its records.

process
string

The process id: milling_3ax | milling_3plus2 | milling_5ax | turning | turn_mill | drilling | injection_moulding | die_casting | sand_casting | investment_casting | forging | sheet_laser_brake | sheet_punch_brake | fdm | sla | sls | lpbf | mjf | welding | tube_bending.

profile

A seeded shop id (generic_milling, ...), an inline shop document, or an ss.dfm.profile/1 {kind, process, material, quantity, shop}. Absent: the seeded shop for process.

quantity
integer

Parts in the lot (default 1): the estimate's totals are at this quantity.

report_key
string

A stored dfm.check report of this subject and profile: its findings are fixed without checking again (refused when its subject or profile key differs).

rules
string[]

The rules whose findings to fix (IM4, DR3, ...).

store
boolean

false skips storing the fixes document and the fresh report as blobs (the keys are still returned). Default true.

Response

stored; fixes_key and fixes (ss.dfm.fixes/1: kind, subject {part, kind, key}, process, profile, report, before {findings, errors, warnings, advice}, items[] {finding, rule, severity, status (offered | not_offered | none), fix?, what?, recheck? {report, before, after, rule_before, rule_after, finding_gone, new_errors[], new_findings[], newly_pending[]}, cost_delta? {amount, currency, source, confidence}, tried[] {fix, what, reason, recheck?}, reason?}, notes[]) unless fixes was given; with apply: applied (count), subject ({recipe, units} | {brep_blob}, plus pmi when the part carries a set), report_key, report (ss.dfm.report/1 of the edited part)