Update a project
update_projectReplace the geometry of one of your existing projects, keeping its id, link and history. Pass the version you got from get_project — if the project has changed since, the update is refused rather than silently overwriting that change. Use this instead of save_project when iterating, so a person keeps one link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rename the project at the same time (optional). | |
| scad | No | OpenSCAD source, as an alternative to `nodes`. Saved as the editor’s .scad import saves it: top-level options become project variables, but one that picks an if/for is fixed, and part names are generated. For a fully live script send it in `nodes` as a scad generator. | |
| nodes | No | Parametric node tree. mm, Z-up, rotations in DEGREES (a rotation.* binding: radians). Read owlcad://schema/primitives for every primitive, modifier and generator and its parameter ranges (unknown params are dropped silently), and owlcad://schema/conventions for the placement arithmetic, which is where most models go wrong. | |
| version | Yes | The `version` get_project reported. A mismatch means someone else changed it — re-read and retry. | |
| projectId | Yes | The project to overwrite. |