Upload a tool library
POST/v1/tool-libraries
Creates a Fusion tool library and returns a short-lived URL for uploading it: the JSON Fusion writes for a library (ToolLibrary.toJson(), or tools.json inside an exported .tools). Upload the file to the URL, then name the library in a job’s tool crib as { kind: "fusion", toolLibraryId, presets? }. Nothing reads the file until a job does: each plan reads it under its crib entry’s preset map and prices its tools for the job’s material, and an entry that is not a milling tool is left out rather than failing the job; each tool a plan uses names its library entry in tools[key].source. A library is one upload: uploading again once a job has read it is not supported, and the next job is refused with tool_library_source_changed. Create a new library for a new upload. A library expires 15 days after it was last used by a job, to within a day; expiresAt states the moment. Creating it counts as its first use. Only a job extends a library; reading it (GET /v1/tool-libraries/{id}) does not. A library over 64 MiB is refused by the job that names it (tool_library_too_large).
Experimental. Available now and still gaining functionality. It may change in breaking ways in a minor API release; each such change is listed in the release notes, so check them before upgrading.
Request
Responses
- 201
- 400
- 401
- 403
- 500
- 503
The tool library 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 tool library could not be created.
Authentication is temporarily unavailable.