Upload a part
POST/v1/parts
Creates a part and returns a short-lived URL for uploading its CAD source. This is the first step of the pipeline — upload the file to the URL, then run Analyze a part (PATCH /v1/parts/{id}).
A part is one upload. The URL can be used again until work is first asked of the part, and the last upload is the one that counts; the first request that acts on the source fixes it. Uploading again after that is not supported, even of the same file, and the next request may be refused with part_source_changed: create a new part for a new upload.
A part is one solid body. A file holding several fails analysis: its job’s error begins multiple_bodies:, and its bodies list each body’s index, name, face count and box. Upload the file again with bodyIndex set to the index of the body to machine, and the part is that body from then on, processed exactly as a single-body file is.
Request
Responses
- 201
- 400
- 401
- 403
- 500
- 503
The part was created and is ready for direct upload.
The request is invalid.
The API key is missing or invalid.
The API key may not perform this operation: it has no access to this part of the API, it may only read it, or its creator has not met the organization’s two-factor requirement.
The part could not be created.
Authentication is temporarily unavailable.