Skip to main content
POST
Pick the process a part should be made by: every candidate checked and costed, ranked per quantity (ss.dfm.select/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, a single part: exactly one of {recipe, units?}, {brep_blob}, {step_blob} (an assembly is refused).

candidates
object[]

Explicit candidates, each {profile?, process?, material?} as dfm.check takes them (profile a seeded shop id, an inline shop or an ss.dfm.profile/1). Not screened on the material.

material
string

The part's material (required for the default candidates unless materials names them).

materials
object

A material per process id or family (machining, moulding, casting, sheet, additive): {"moulding": "abs", "fdm": "abs filament"}.

part
string

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

processes
string[]

Process ids, each on its seeded shop (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).

quantities
integer[]

The quantities to rank at (default 1, 10, 100, 1000, 10000, 100000); sorted, repeats dropped, at most 32.

Required range: x >= 1
store
boolean

false skips storing the answer as a blob (the key is still returned). Default true.

Response

select_key, stored, report (ss.dfm.select/1: kind, subject {part, kind, key}, quantities[], currency, candidates[] {id, process, shop, material, profile, feasibility (feasible | unverified | infeasible), check {report?, not_built? {unit, what}, findings {error, warning, advice}, pending}, blocking[] (findings), cost {estimate, currency, confidence, material, processing, setup_per_lot, tooling, tool_life?, cycle_time_s}, curve[] {quantity, per_part, price}, notes[]}, skipped[] {process, shop, material, code, unit?, stage (candidates | cost | check), reason}, rankings[] {quantity, order[] {rank, id, process, per_part, price, feasibility}, cheapest?}, break_evens[] {below, above, quantity, between [lo, hi], per_part_below, per_part_above}, bands[] {from, to, id, process, feasibility}, notes[])