upload_reference
Uploads a reference model, scan, or photo into a part folder so you can remix or trace it, returning copy instructions when no file data is supplied.
Instructions
Get an original model (STL, 3MF or STEP) onto the server, into parts//ref/,
to remix it, or a scan or photo (PNG, JPEG, TIFF, BMP) to trace with trace_outline (the part
folder may not exist yet). With data_base64 (the whole file, base64) it
is stored now, up to 50 MB; that is only practical for small files, since the model has to
write out every byte. Without it, the result says how the USER copies the file: over HTTP a
signed upload link for curl -fT <file> '<link>' (no token needed, expires), over SSH the
b123d-print push command, locally the folder to copy it into. Then describe_model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | Yes | ||
| filename | Yes | ||
| overwrite | No | ||
| data_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |